Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ParzivalHack/PySpector
/ _reset_cache_singleton
Function
_reset_cache_singleton
src/pyspector/ast_cache.py:470–473 ·
view source on GitHub ↗
Reset the process-level singleton. Use only in tests.
()
Source
from the content-addressed store, hash-verified
468
469
470
def
_reset_cache_singleton() -> None:
471
""
"Reset the process-level singleton. Use only in tests."
""
472
global _instance
473
_instance = None
Callers
2
test_singleton_same_instance
Method · 0.90
test_singleton_reset_yields_new_instance
Method · 0.90
Calls
no outgoing calls
Tested by
2
test_singleton_same_instance
Method · 0.72
test_singleton_reset_yields_new_instance
Method · 0.72