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

Function is_non_empty_tuple

mypy/checkexpr.py:6649–6651  ·  view source on GitHub ↗
(t: Type)

Source from the content-addressed store, hash-verified

6647
6648
6649def is_non_empty_tuple(t: Type) -> bool:
6650 t = get_proper_type(t)
6651 return isinstance(t, TupleType) and bool(t.items)
6652
6653
6654def is_duplicate_mapping(

Callers 1

Calls 3

get_proper_typeFunction · 0.90
isinstanceFunction · 0.85
boolClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…