Skip to content

Commit ca4ad56

Browse files
committed
Make tuple typing more precise
1 parent 1155cf8 commit ca4ad56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildconfig/stubs/pygame/color.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class Color(Collection[int]):
4141
def __index__(self) -> int: ...
4242
def __invert__(self) -> Color: ...
4343
def __contains__(self, other: int) -> bool: ... # type: ignore[override]
44-
def __getattribute__(self, attr: str) -> Union[Color, tuple]: ...
45-
def __setattr__(self, attr: str, value: Union[Color, tuple]) -> None: ...
44+
def __getattribute__(self, attr: str) -> Union[Color, tuple[int, ...]]: ...
45+
def __setattr__(self, attr: str, value: Union[Color, tuple[int, ...]]) -> None: ...
4646
@overload
4747
@classmethod
4848
def from_cmy(cls, object: tuple[float, float, float], /) -> Color: ...

0 commit comments

Comments
 (0)