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

Function is_uninhabited

mypy/checkpattern.py:884–885  ·  view source on GitHub ↗
(typ: Type)

Source from the content-addressed store, hash-verified

882
883
884def is_uninhabited(typ: Type) -> bool:
885 return isinstance(get_proper_type(typ), UninhabitedType)

Callers 6

visit_as_patternMethod · 0.85
visit_or_patternMethod · 0.85
visit_mapping_patternMethod · 0.85
visit_class_patternMethod · 0.85

Calls 2

get_proper_typeFunction · 0.90
isinstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…