Final for distutils constants (#12454)

Co-authored-by: Avasam <samuel.06@hotmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Max Muoto
2024-08-17 12:49:35 -07:00
committed by GitHub
parent 34b8c79138
commit 30bbd8640a
9 changed files with 36 additions and 35 deletions

View File

@@ -1,10 +1,10 @@
from typing import Any
from typing import Any, Final
DEBUG: int
INFO: int
WARN: int
ERROR: int
FATAL: int
DEBUG: Final = 1
INFO: Final = 2
WARN: Final = 3
ERROR: Final = 4
FATAL: Final = 5
class Log:
def __init__(self, threshold: int = 3) -> None: ...