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

Class HasRecursiveType

mypy/types.py:4091–4096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4089
4090
4091class HasRecursiveType(BoolTypeQuery):
4092 def __init__(self) -> None:
4093 super().__init__(ANY_STRATEGY)
4094
4095 def visit_type_alias_type(self, t: TypeAliasType) -> bool:
4096 return t.is_recursive or self.query_types(t.args)
4097
4098
4099# Use singleton since this is hot (note: call reset() before using)

Callers 1

types.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…