[stdlib] Mark constants as Final (#14577)

This commit is contained in:
Semyon Moroz authored and GitHub committed 2025-08-15 13:19:03 +02:00
1 parent 554701e9b6
commit 85a787bba3
62 files changed
+1601 -1583

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
import sys
from _typeshed import ReadOnlyBuffer, StrOrBytesPath
from types import TracebackType
from typing import TypeVar, final, overload, type_check_only
from typing import Final, TypeVar, final, overload, type_check_only
from typing_extensions import Self, TypeAlias
if sys.platform != "win32":
@@ -10,7 +10,7 @@ if sys.platform != "win32":
_ValueType: TypeAlias = str | ReadOnlyBuffer
class error(OSError): ...
library: str
library: Final[str]
# Actual typename dbm, not exposed by the implementation
@final