Skip to content

Commit

Permalink
Mark old types deprecated: clearer wording 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Jan 25, 2025
1 parent 17f5884 commit 5214012
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
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 5214012

Please sign in to comment.