mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
logging.LoggerAdapter: Use a bound TypeVar (#7763)
This commit is contained in:
@@ -408,7 +408,7 @@ class LogRecord:
|
||||
) -> None: ...
|
||||
def getMessage(self) -> str: ...
|
||||
|
||||
_L = TypeVar("_L", Logger, LoggerAdapter[Logger], LoggerAdapter[Any])
|
||||
_L = TypeVar("_L", bound=Logger | LoggerAdapter[Any])
|
||||
|
||||
class LoggerAdapter(Generic[_L]):
|
||||
logger: _L
|
||||
|
||||
Reference in New Issue
Block a user