Update _FilterType to retuning bool (#9514)

This commit is contained in:
Kalle Møller
2023-01-16 16:12:40 +01:00
committed by GitHub
parent c8c5953aa0
commit 6b23df3db6

View File

@@ -64,7 +64,7 @@ if sys.version_info >= (3, 11):
_SysExcInfoType: TypeAlias = Union[tuple[type[BaseException], BaseException, TracebackType | None], tuple[None, None, None]]
_ExcInfoType: TypeAlias = None | bool | _SysExcInfoType | BaseException
_ArgsType: TypeAlias = tuple[object, ...] | Mapping[str, object]
_FilterType: TypeAlias = Filter | Callable[[LogRecord], int]
_FilterType: TypeAlias = Filter | Callable[[LogRecord], bool]
_Level: TypeAlias = int | str
_FormatStyle: TypeAlias = Literal["%", "{", "$"]