mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 13:40:23 +08:00
[stdlib] Mark constants as Final (#14577)
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user