Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
884
def
is_uninhabited(typ: Type) -> bool:
885
return
isinstance(get_proper_type(typ), UninhabitedType)
Callers
6
visit_as_pattern
Method · 0.85
visit_or_pattern
Method · 0.85
visit_sequence_pattern
Method · 0.85
expand_starred_pattern_types
Method · 0.85
visit_mapping_pattern
Method · 0.85
visit_class_pattern
Method · 0.85
Calls
2
get_proper_type
Function · 0.90
isinstance
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…