(t: Type)
| 596 | |
| 597 | |
| 598 | def is_callable_protocol(t: Type) -> bool: |
| 599 | proper_t = get_proper_type(t) |
| 600 | if isinstance(proper_t, Instance) and proper_t.type.is_protocol: |
| 601 | return "__call__" in proper_t.type.protocol_members |
| 602 | return False |
no test coverage detected
searching dependent graphs…