mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add _threading_local.local.__delattr__ back to the stub (#8526)
This commit is contained in:
12
test_cases/stdlib/test_threading.py
Normal file
12
test_cases/stdlib/test_threading.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import _threading_local
|
||||
import threading
|
||||
|
||||
loc = threading.local()
|
||||
loc.foo = 42
|
||||
del loc.foo
|
||||
loc.baz = ["spam", "eggs"]
|
||||
del loc.baz
|
||||
|
||||
l2 = _threading_local.local()
|
||||
l2.asdfasdf = 56
|
||||
del l2.asdfasdf
|
||||
Reference in New Issue
Block a user