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

Method iteration_dependent_errors

mypy/messages.py:2586–2597  ·  view source on GitHub ↗
(self, iter_errors: IterationDependentErrors)

Source from the content-addressed store, hash-verified

2584 )
2585
2586 def iteration_dependent_errors(self, iter_errors: IterationDependentErrors) -> None:
2587 for error_info in iter_errors.yield_uselessness_error_infos():
2588 self.fail(*error_info[:2], code=error_info[2])
2589 for nonoverlaps, kind, context in iter_errors.yield_nonoverlapping_types():
2590 self.dangerous_comparison(
2591 mypy.typeops.make_simplified_union(nonoverlaps[0]),
2592 mypy.typeops.make_simplified_union(nonoverlaps[1]),
2593 kind,
2594 context,
2595 )
2596 for types, context in iter_errors.yield_revealed_type_infos():
2597 self.reveal_type(mypy.typeops.make_simplified_union(types), context)
2598
2599
2600def quote_type_string(type_string: str) -> str:

Callers 2

accept_loopMethod · 0.80
visit_try_stmtMethod · 0.80

Calls 7

failMethod · 0.95
dangerous_comparisonMethod · 0.95
reveal_typeMethod · 0.95
make_simplified_unionMethod · 0.80

Tested by

no test coverage detected