Whether t came from a function decorated with `@coroutine`.
(t: Type)
| 6617 | |
| 6618 | |
| 6619 | def has_coroutine_decorator(t: Type) -> bool: |
| 6620 | """Whether t came from a function decorated with `@coroutine`.""" |
| 6621 | t = get_proper_type(t) |
| 6622 | return isinstance(t, Instance) and t.type.fullname == "typing.AwaitableGenerator" |
| 6623 | |
| 6624 | |
| 6625 | def is_async_def(t: Type) -> bool: |
no test coverage detected
searching dependent graphs…