Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
163
def
_is_list(obj):
164
# checks for list or tuples
165
# XXXX badly named!
166
return
type(obj) in (list, tuple)
167
168
169
def
_instance_callable(obj):
Callers
3
_mock_add_spec
Method · 0.85
__enter__
Method · 0.85
create_autospec
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected