(t: Instance)
| 910 | |
| 911 | |
| 912 | def unpack_callback_protocol(t: Instance) -> ProperType | None: |
| 913 | assert t.type.is_protocol |
| 914 | if t.type.protocol_members == ["__call__"]: |
| 915 | return get_proper_type(find_member("__call__", t, t, is_operator=True)) |
| 916 | return None |
no test coverage detected
searching dependent graphs…