Skip to content

Commit

Permalink
Mark old types deprecated: clearer wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Jan 25, 2025
1 parent 65bb565 commit 1b2b195
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion buildconfig/stubs/pygame/event.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Event(_GenericEvent):
pass

@final
@deprecated("Use `Event` instead (this is an old alias)")
@deprecated("Use `Event` instead (EventType is an old alias)")
class EventType(_GenericEvent):
pass

Expand Down
2 changes: 1 addition & 1 deletion buildconfig/stubs/pygame/font.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ class Font:
def get_point_size(self) -> int: ...
def set_point_size(self, val: int, /) -> None: ...

@deprecated("Use `Font` instead (this is an old alias)")
@deprecated("Use `Font` instead (FontType is an old alias)")
class FontType(Font): ...
2 changes: 1 addition & 1 deletion buildconfig/stubs/pygame/mask.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ class Mask:
dest: Union[RectLike, Point] = (0, 0),
) -> Surface: ...

@deprecated("Use `Mask` instead (this is an old alias)")
@deprecated("Use `Mask` instead (MaskType is an old alias)")
class MaskType(Mask): ...
4 changes: 2 additions & 2 deletions buildconfig/stubs/pygame/mixer.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ class Channel:
def set_endevent(self, type: Union[int, Event] = 0, /) -> None: ...
def get_endevent(self) -> int: ...

@deprecated("Use `Sound` instead (this is an old alias)")
@deprecated("Use `Sound` instead (SoundType is an old alias)")
class SoundType(Sound): ...

@deprecated("Use `Channel` instead (this is an old alias)")
@deprecated("Use `Channel` instead (ChannelType is an old alias)")
class ChannelType(Channel): ...
4 changes: 2 additions & 2 deletions buildconfig/stubs/pygame/rect.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class Rect(_GenericRect[int]):
class FRect(_GenericRect[float]):
...

@deprecated("Use `Rect` instead (this is an old alias)")
@deprecated("Use `Rect` instead (RectType is an old alias)")
class RectType(Rect): ...

@deprecated("Use `FRect` instead (this is an old alias)")
@deprecated("Use `FRect` instead (FRectType is an old alias)")
class FRectType(FRect): ...
2 changes: 1 addition & 1 deletion buildconfig/stubs/pygame/surface.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,5 @@ class Surface:
def premul_alpha(self) -> Surface: ...
def premul_alpha_ip(self) -> Surface: ...

@deprecated("Use `Surface` instead (this is an old alias)")
@deprecated("Use `Surface` instead (SurfaceType is an old alias)")
class SurfaceType(Surface): ...

0 comments on commit 1b2b195

Please sign in to comment.