Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/mypy
/ length
Method
length
mypy/types.py:2814–2815 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2812
)
2813
2814
def
length(self) -> int:
2815
return
len(self.items)
2816
2817
def
accept(self, visitor: TypeVisitor[T]) -> T:
2818
return
visitor.visit_tuple_type(self)
Callers
8
can_be_true_default
Method · 0.95
can_be_false_default
Method · 0.95
refine_tuple_type_with_len
Method · 0.45
min_tuple_length
Method · 0.45
visit_tuple_index_helper
Method · 0.45
join_tuples
Method · 0.45
adjust_tuple
Function · 0.45
meet_tuples
Method · 0.45
Calls
1
len
Function · 0.85
Tested by
no test coverage detected