(self, t: Parameters)
| 326 | raise NotImplementedError |
| 327 | |
| 328 | def visit_parameters(self, t: Parameters) -> ProperType: |
| 329 | if isinstance(self.s, Parameters): |
| 330 | if not is_similar_params(t, self.s): |
| 331 | # TODO: it would be prudent to return [*object, **object] instead of Any. |
| 332 | return self.default(self.s) |
| 333 | from mypy.meet import meet_types |
| 334 | |
| 335 | return t.copy_modified( |
| 336 | arg_types=[ |
| 337 | meet_types(s_a, t_a) for s_a, t_a in zip(self.s.arg_types, t.arg_types) |
| 338 | ], |
| 339 | arg_names=combine_arg_names(self.s, t), |
| 340 | ) |
| 341 | else: |
| 342 | return self.default(self.s) |
| 343 | |
| 344 | def visit_instance(self, t: Instance) -> ProperType: |
| 345 | if isinstance(self.s, Instance): |
nothing calls this directly
no test coverage detected