[stdlib] Add missing Final (#14613)

This commit is contained in:
Semyon Moroz
2025-08-21 10:18:20 +00:00
committed by GitHub
parent 9b5b3ecb0a
commit 9bb8c4f1f9
30 changed files with 197 additions and 187 deletions
+8 -8
View File
@@ -5,7 +5,7 @@ from collections.abc import Callable, Iterable, Mapping, Sequence
from tkinter.constants import *
from tkinter.font import _FontDescription
from types import GenericAlias, TracebackType
from typing import Any, ClassVar, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
from typing import Any, ClassVar, Final, Generic, Literal, NamedTuple, Protocol, TypedDict, TypeVar, overload, type_check_only
from typing_extensions import TypeAlias, TypeVarTuple, Unpack, deprecated
if sys.version_info >= (3, 11):
@@ -153,11 +153,11 @@ __all__ = [
TclError = _tkinter.TclError
wantobjects: int
TkVersion: float
TclVersion: float
READABLE = _tkinter.READABLE
WRITABLE = _tkinter.WRITABLE
EXCEPTION = _tkinter.EXCEPTION
TkVersion: Final[float]
TclVersion: Final[float]
READABLE: Final = _tkinter.READABLE
WRITABLE: Final = _tkinter.WRITABLE
EXCEPTION: Final = _tkinter.EXCEPTION
# Quick guide for figuring out which widget class to choose:
# - Misc: any widget (don't use BaseWidget because Tk doesn't inherit from BaseWidget)
@@ -359,8 +359,8 @@ class BooleanVar(Variable):
def mainloop(n: int = 0) -> None: ...
getint: Incomplete
getdouble: Incomplete
getint = int
getdouble = float
def getboolean(s): ...