MCPcopy Index your code
hub / github.com/python/cpython / check_sequence_then_mapping

Method check_sequence_then_mapping

Lib/test/test_patma.py:31–36  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

29
30 @staticmethod
31 def check_sequence_then_mapping(x):
32 match x:
33 case [*_]:
34 return "seq"
35 case {}:
36 return "map"
37
38 @staticmethod
39 def check_mapping_then_sequence(x):

Calls

no outgoing calls

Tested by

no test coverage detected