MCPcopy Index your code
hub / github.com/python/mypy / visit_parameters

Method visit_parameters

mypy/meet.py:861–871  ·  view source on GitHub ↗
(self, t: Parameters)

Source from the content-addressed store, hash-verified

859 raise NotImplementedError
860
861 def visit_parameters(self, t: Parameters) -> ProperType:
862 if isinstance(self.s, Parameters):
863 if len(t.arg_types) != len(self.s.arg_types):
864 return self.default(self.s)
865 from mypy.join import join_types
866
867 return t.copy_modified(
868 arg_types=[join_types(s_a, t_a) for s_a, t_a in zip(self.s.arg_types, t.arg_types)]
869 )
870 else:
871 return self.default(self.s)
872
873 def visit_instance(self, t: Instance) -> ProperType:
874 if isinstance(self.s, Instance):

Callers

nothing calls this directly

Calls 6

defaultMethod · 0.95
join_typesFunction · 0.90
isinstanceFunction · 0.85
lenFunction · 0.85
zipFunction · 0.85
copy_modifiedMethod · 0.45

Tested by

no test coverage detected