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

Function has_uninhabited_component

mypy/checkexpr.py:6714–6715  ·  view source on GitHub ↗
(t: Type | None)

Source from the content-addressed store, hash-verified

6712
6713
6714def has_uninhabited_component(t: Type | None) -> bool:
6715 return t is not None and t.accept(HasUninhabitedComponentsQuery())
6716
6717
6718class HasUninhabitedComponentsQuery(types.BoolTypeQuery):

Calls 2

acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…