Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ check_mapping_then_sequence
Method
check_mapping_then_sequence
Lib/test/test_patma.py:39–44 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
37
38
@staticmethod
39
def
check_mapping_then_sequence(x):
40
match x:
41
case {}:
42
return
"map"
43
case [*_]:
44
return
"seq"
45
46
def
test_multiple_inheritance_mapping(self):
47
class
C:
Callers
4
test_multiple_inheritance_mapping
Method · 0.95
test_multiple_inheritance_sequence
Method · 0.95
test_late_registration_mapping
Method · 0.95
test_late_registration_sequence
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected