autoread_dotenv.warnings
autoread_dotenv.warnings ¶
autoread_dotenv.warnings - Warning utilities.
AutoreadDotenvWarning ¶
Bases: UserWarning
Category for every runtime warning autoread-dotenv emits.
A dedicated subclass of UserWarning lets callers silence only this package
without also muting unrelated UserWarnings, via
warnings.filterwarnings("ignore", category=AutoreadDotenvWarning) or pytest's
filterwarnings config. Re-exported as autoread_dotenv.AutoreadDotenvWarning.
Note: PYTHONWARNINGS / -W cannot reference this category - the interpreter
parses those filters before site-packages is importable, so only built-in
categories resolve there. And because entrypoint() runs from sitecustomize
at startup, an in-process filter only affects a later manual entrypoint() call,
not the startup pass. See docs/configuration.md.
simple_warning ¶
Context manager for simplified warning formatting without tracebacks.