mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 23:05:50 +08:00
setprofile accepts None (#3239)
The function `threading.setprofile` can be called with a `None` value to clear the profile function. This does unset the function from the existing threads, it only clears the callback function so that new threads are created without the profiling hook installed.
This commit is contained in:
1 parent
babc0c1912
commit
4c63939585
1 file changed
+1
-1
@@ -30,7 +30,7 @@ if sys.version_info >= (3, 4):
|
||||
def main_thread() -> Thread: ...
|
||||
|
||||
def settrace(func: _TF) -> None: ...
|
||||
def setprofile(func: _PF) -> None: ...
|
||||
def setprofile(func: Optional[_PF]) -> None: ...
|
||||
def stack_size(size: int = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
|
||||
Reference in new issue
Block a user