diff --git a/buildconfig/stubs/pygame/typing.pyi b/buildconfig/stubs/pygame/typing.pyi index 0abba66018..f3f7aad434 100644 --- a/buildconfig/stubs/pygame/typing.pyi +++ b/buildconfig/stubs/pygame/typing.pyi @@ -64,8 +64,7 @@ class _HasRectAttribute(Protocol): # An object that has a rect attribute that is either a rect, or a function # that returns a rect conforms to the rect protocol @property - def rect(self) -> Union["RectLike", Callable[[], "RectLike"]]: - raise NotImplementedError + def rect(self) -> Union["RectLike", Callable[[], "RectLike"]]: ... RectLike = Union[SequenceLike[float], SequenceLike[Coordinate], _HasRectAttribute] diff --git a/src_py/typing.py b/src_py/typing.py index 0abba66018..f3f7aad434 100644 --- a/src_py/typing.py +++ b/src_py/typing.py @@ -64,8 +64,7 @@ class _HasRectAttribute(Protocol): # An object that has a rect attribute that is either a rect, or a function # that returns a rect conforms to the rect protocol @property - def rect(self) -> Union["RectLike", Callable[[], "RectLike"]]: - raise NotImplementedError + def rect(self) -> Union["RectLike", Callable[[], "RectLike"]]: ... RectLike = Union[SequenceLike[float], SequenceLike[Coordinate], _HasRectAttribute]