Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __enter__
Method
__enter__
Lib/unittest/mock.py:1928–1931 ·
view source on GitHub ↗
Patch the dict.
(self)
Source
from the content-addressed store, hash-verified
1926
1927
1928
def
__enter__(self):
1929
""
"Patch the dict."
""
1930
self._patch_dict()
1931
return
self.in_dict
1932
1933
1934
def
_patch_dict(self):
Callers
1
start
Method · 0.95
Calls
1
_patch_dict
Method · 0.95
Tested by
no test coverage detected