1#!/usr/bin/env python3
2"""
3
4"""
5
6# Imports:
7from __future__ import annotations
8
9# ##-- stdlib imports
10import datetime
11import enum
12import functools as ftz
13import itertools as itz
14import logging as logmod
15import pathlib as pl
16import re
17import time
18import weakref
19from uuid import UUID, uuid1
20
21# ##-- end stdlib imports
22
23# ##-- 1st party imports
24from jgdv import Maybe
25
26# ##-- end 1st party imports
27
28# ##-- types
29# isort: off
30# General
31import abc
32import collections.abc
33import typing
34import types
35from typing import cast, assert_type, assert_never
36from typing import Generic, NewType, Never
37from typing import no_type_check, final, override, overload
38# Protocols and Interfaces:
39from typing import Protocol, runtime_checkable
40# isort: on
41# ##-- end types
42
43# ##-- type checking
44# isort: off
45if typing.TYPE_CHECKING:
46 from typing import Final, ClassVar, Any, Self
47 from typing import Literal, LiteralString
48 from typing import TypeGuard
49 from collections.abc import Iterable, Iterator, Callable, Generator
50 from collections.abc import Sequence, Mapping, MutableMapping, Hashable
51
52 from logging import LogRecord
53 from jgdv import Maybe
54## isort: on
55# ##-- end type checking
56
57##-- logging
58logging = logmod.getLogger(__name__)
59##-- end logging
60
[docs]
61class AnyFilter:
62 """The Simplest Filter"""
63
64 def __call__(self, record:LogRecord) -> bool: # noqa: ARG002
65 """ Returns True to log the record, False to reject """
66 return True