@@ -44,7 +44,7 @@ def __init__(
4444 self ,
4545 name : str = None ,
4646 level : int = 20 ,
47- colorization : 'Colorization' = None ,
47+ colorization = None ,
4848 formatter : Formatter = DefaultFormatter ()
4949 ) -> None :
5050 """
@@ -79,7 +79,7 @@ def __init__(
7979 self ._release_lock ()
8080
8181 @property
82- def colorization (self ) -> 'Colorization' :
82+ def colorization (self ):
8383 """
8484 Gets the colorization object for the handler.
8585
@@ -88,7 +88,7 @@ def colorization(self) -> 'Colorization':
8888 return self ._colorization
8989
9090 @colorization .setter
91- def colorization (self , value : 'Colorization' ) -> None :
91+ def colorization (self , value ) -> None :
9292 """
9393 Sets the colorization object for the handler.
9494
@@ -199,7 +199,7 @@ def close(self) -> None:
199199 finally :
200200 self ._release_lock ()
201201
202- def emit (self , record : 'Record' , ignore_display : bool ) -> None :
202+ def emit (self , record , ignore_display : bool ) -> None :
203203 """
204204 Abstract method to emit a log record.
205205
@@ -208,7 +208,7 @@ def emit(self, record: 'Record', ignore_display: bool) -> None:
208208 """
209209 raise NotImplementedError ('emit() method must be implemented in subclasses.' )
210210
211- def format (self , record : 'Record' ) -> str :
211+ def format (self , record ) -> str :
212212 """
213213 Formats a log record using the handler's formatter.
214214
@@ -232,7 +232,7 @@ def get_handlers() -> list[Any]:
232232 """
233233 return _handlersList
234234
235- def handle (self , record : 'Record' , ignore_display : bool ) -> None :
235+ def handle (self , record , ignore_display : bool ) -> None :
236236 """
237237 Handles a log record.
238238
@@ -262,7 +262,7 @@ def __init__(
262262 self ,
263263 name : str = None ,
264264 level : int = 20 ,
265- colorization : 'Colorization' = None ,
265+ colorization = None ,
266266 formatter : Formatter = DefaultFormatter (),
267267 stream : Stream = TerminalStream ()
268268 ) -> None :
@@ -317,7 +317,7 @@ def close(self) -> None:
317317 self ._stream .close ()
318318 super ().close ()
319319
320- def emit (self , record : 'Record' , ignore_display : bool = True ) -> None :
320+ def emit (self , record , ignore_display : bool = True ) -> None :
321321 """
322322 Emits the log record by formatting it, colorizing the message, and writing it to the stream.
323323
@@ -356,7 +356,7 @@ def __init__(
356356 self ,
357357 name : str = None ,
358358 level : int = 20 ,
359- colorization : 'Colorization' = None ,
359+ colorization = None ,
360360 formatter : Formatter = DefaultFormatter (),
361361 stream : Stream = StdoutStream ()
362362 ) -> None :
@@ -416,7 +416,7 @@ def close(self) -> None:
416416 self ._stream .close ()
417417 super ().close ()
418418
419- def emit (self , record : 'Record' , ignore_display : bool ) -> None :
419+ def emit (self , record , ignore_display : bool ) -> None :
420420 """
421421 Emits a log record to the stream.
422422
@@ -461,7 +461,7 @@ def __init__(
461461 self ,
462462 name : str = None ,
463463 level : int = 20 ,
464- colorization : 'Colorization' = None ,
464+ colorization = None ,
465465 formatter : Formatter = DefaultFormatter (),
466466 file_name : str = 'default.log' ,
467467 file_mode : str = 'a' ,
@@ -596,7 +596,7 @@ def close(self) -> None:
596596 self ._close_file_stream ()
597597 super ().close ()
598598
599- def emit (self , record : 'Record' , ignore_display : bool ) -> None :
599+ def emit (self , record , ignore_display : bool ) -> None :
600600 """
601601 Emits a log record by writing it to the log file.
602602
0 commit comments