mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Fix various stubtest complaints on Python 3.12 (#10691)
This commit is contained in:
@@ -129,6 +129,9 @@ __all__ = [
|
||||
"Terminator",
|
||||
]
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
__all__ += ["teleport"]
|
||||
|
||||
# Note: '_Color' is the alias we use for arguments and _AnyColor is the
|
||||
# alias we use for return types. Really, these two aliases should be the
|
||||
# same, but as per the "no union returns" typeshed policy, we'll return
|
||||
@@ -648,6 +651,9 @@ def shape(name: None = None) -> str: ...
|
||||
@overload
|
||||
def shape(name: str) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
def teleport(x: float | None = None, y: float | None = None, *, fill_gap: bool = False) -> None: ...
|
||||
|
||||
# Unsafely overlaps when no arguments are provided
|
||||
@overload
|
||||
def shapesize() -> tuple[float, float, float]: ... # type: ignore[misc]
|
||||
|
||||
Reference in New Issue
Block a user