(self, typ: ProperType)
| 919 | return True |
| 920 | |
| 921 | def valid_unpack_fallback_item(self, typ: ProperType) -> bool: |
| 922 | if isinstance(typ, AnyType): |
| 923 | return True |
| 924 | if not isinstance(typ, Instance) or not typ.type.has_base("typing.Mapping"): |
| 925 | return False |
| 926 | mapped = map_instance_to_supertype(typ, self.chk.lookup_typeinfo("typing.Mapping")) |
| 927 | return all(isinstance(a, AnyType) for a in get_proper_types(mapped.args)) |
| 928 | |
| 929 | def match_typeddict_call_with_dict( |
| 930 | self, |
no test coverage detected