mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Simplify and correct many numeric unions (#7906)
Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
@@ -410,7 +410,11 @@ class _Screen(TurtleScreen):
|
||||
def __init__(self) -> None: ...
|
||||
# Note int and float are interpreted differently, hence the Union instead of just float
|
||||
def setup(
|
||||
self, width: int | float = ..., height: int | float = ..., startx: int | None = ..., starty: int | None = ...
|
||||
self,
|
||||
width: int | float = ..., # noqa: Y041
|
||||
height: int | float = ..., # noqa: Y041
|
||||
startx: int | None = ...,
|
||||
starty: int | None = ...,
|
||||
) -> None: ...
|
||||
def title(self, titlestring: str) -> None: ...
|
||||
def bye(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user