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

Function _is_list

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

Source from the content-addressed store, hash-verified

162
163
164def _is_list(obj):
165 # checks for list or tuples
166 # XXXX badly named!
167 return type(obj) in (list, tuple)
168
169
170def _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

Used in the wild real call sites across dependent graphs

searching dependent graphs…