mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[stdlib] Add missing Final (#14613)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user