Skip to content

Commit

Permalink
add comment on supported python version
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Dec 22, 2023
1 parent f0cd805 commit 857a16b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion param/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def iscoroutinefunction(function):
"""
Whether the function is an asynchronous generator or a coroutine.
"""
# TODO: document why this is needed
# Partial unwrapping not required starting from Python 3.11.0
# See https://github.com/holoviz/param/pull/894#issuecomment-1867084447
while isinstance(function, functools.partial):
function = function.func
return (
Expand Down

0 comments on commit 857a16b

Please sign in to comment.