Return True if the class has any async methods.
(cls: object)
| 37 | |
| 38 | @lru_cache(maxsize=2**10) |
| 39 | def has_async_methods(cls: object) -> bool: |
| 40 | """Return True if the class has any async methods.""" |
| 41 | return len(inspect.getmembers(cls, predicate=is_async_func)) > 0 |
| 42 | |
| 43 | |
| 44 | @lru_cache(maxsize=2**10) |
no outgoing calls
searching dependent graphs…