From a1c6566abe5ad94ed0401360872dde9c726f0da0 Mon Sep 17 00:00:00 2001 From: Michael H Date: Wed, 27 May 2020 22:42:33 -0400 Subject: [PATCH] [Add stub entry for logging._srcfile] (#3840) - While this appears to be private, it's also documented as available to set here: https://docs.python.org/3/howto/logging.html#optimization - Did *not* update `logging.logThreads` et al to match the documentation as it may be more appropriate to update the documentation to set to `False` rather than to `0` based on how these are used Type further narrowed based on known type of a parameter to `os.normcase` --- stdlib/2and3/logging/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/2and3/logging/__init__.pyi b/stdlib/2and3/logging/__init__.pyi index e44e36fd2..a38edcc7e 100644 --- a/stdlib/2and3/logging/__init__.pyi +++ b/stdlib/2and3/logging/__init__.pyi @@ -29,6 +29,7 @@ raiseExceptions: bool logThreads: bool logMultiprocessing: bool logProcesses: bool +_srcfile: Optional[str] def currentframe() -> FrameType: ...