@@ -16,7 +16,7 @@ if sys.version_info >= (3, 5):
16
16
else :
17
17
_ExcInfoType = Union [bool , _SysExcInfoType ]
18
18
_ArgsType = Union [Tuple [Any , ...], Dict [str , Any ]]
19
- _FilterType = Union ['Filter' , Callable [[LogRecord ], int ]]
19
+ _FilterType = Union ['Filter' , Callable [[' LogRecord' ], int ]]
20
20
21
21
22
22
class Logger :
@@ -153,16 +153,16 @@ class Formatter:
153
153
fmt : Optional [str ] = ...,
154
154
datefmt : Optional [str ] = ...) -> None : ...
155
155
156
- def format (self , record : LogRecord ) -> str : ...
157
- def formatTime (self , record : LogRecord , datefmt : str = ...) -> str : ...
156
+ def format (self , record : ' LogRecord' ) -> str : ...
157
+ def formatTime (self , record : ' LogRecord' , datefmt : str = ...) -> str : ...
158
158
def formatException (self , exc_info : _SysExcInfoType ) -> str : ...
159
159
if sys .version_info >= (3 ,):
160
160
def formatStack (self , stack_info : str ) -> str : ...
161
161
162
162
163
163
class Filter :
164
164
def __init__ (self , name : str = ...) -> None : ...
165
- def filter (self , record : LogRecord ) -> int : ...
165
+ def filter (self , record : ' LogRecord' ) -> int : ...
166
166
167
167
168
168
class LogRecord :
@@ -359,8 +359,7 @@ class PlaceHolder:
359
359
360
360
# Below aren't in module docs but still visible
361
361
362
- class RootLogger (Logger ):
363
- pass
362
+ class RootLogger (Logger ): ...
364
363
365
364
root = ... # type: RootLogger
366
365
0 commit comments