Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
6649
def
is_non_empty_tuple(t: Type) -> bool:
6650
t = get_proper_type(t)
6651
return
isinstance(t, TupleType) and bool(t.items)
6652
6653
6654
def
is_duplicate_mapping(
Callers
1
check_for_extra_actual_arguments
Method · 0.85
Calls
3
get_proper_type
Function · 0.90
isinstance
Function · 0.85
bool
Class · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…