MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_list

Function _is_list

Lib/unittest/mock.py:163–166  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

161
162
163def _is_list(obj):
164 # checks for list or tuples
165 # XXXX badly named!
166 return type(obj) in (list, tuple)
167
168
169def _instance_callable(obj):

Callers 3

_mock_add_specMethod · 0.85
__enter__Method · 0.85
create_autospecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected