Skip to content

Commit

Permalink
Update is_fn_like to cover more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
unexge committed Jan 23, 2023
1 parent 1ad8e7f commit 5f355d1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ def is_fn_like(obj: Any) -> bool:
or inspect.ismethod(obj)
or inspect.isfunction(obj)
or inspect.ismethoddescriptor(obj)
or inspect.iscoroutine(obj)
or inspect.iscoroutinefunction(obj)
)


Expand Down

0 comments on commit 5f355d1

Please sign in to comment.