Skip to content

Commit 0e3acf0

Browse files
authored
Merge pull request #3490 from damusss/versionadded-getsedwinpos
Add missing/Fix versionadded tags in display, mixer and surface
2 parents 1e49d04 + 17bdf85 commit 0e3acf0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

buildconfig/stubs/pygame/display.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ def get_window_position() -> tuple[int, int]:
730730
Coordinates could be negative or outside the desktop size bounds. The
731731
position is relative to the topleft of the primary monitor and the y coordinate
732732
ignores the window frame.
733+
734+
.. versionadded:: 2.5.0
733735
"""
734736

735737
def set_window_position(position: Point) -> None:
@@ -742,6 +744,8 @@ def set_window_position(position: Point) -> None:
742744
ignore the window frame (y = 0 means the frame is hidden). The user will
743745
still be able to move the window after this call. See also
744746
:func:`pygame.display.get_window_position()`.
747+
748+
.. versionadded:: 2.5.0
745749
"""
746750

747751
def get_allow_screensaver() -> bool:

buildconfig/stubs/pygame/surface.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ class Surface:
773773
rectangle for the Surface centered at a given position. Size attributes
774774
such as ``size`` or ``w`` can also be applied to resize the FRect.
775775
776-
..versionadded:: 2.3.0
776+
.. versionadded:: 2.3.0
777777
"""
778778

779779
def get_bitsize(self) -> int:

docs/reST/ref/mixer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ The following file formats are supported
526526
This simply returns the channel id used to create the ``Channel`` instance
527527
as a read-only attribute
528528

529-
..versionadded:: 2.4.0
529+
.. versionadded:: 2.4.0
530530

531531
.. ## Channel.id ##
532532

0 commit comments

Comments
 (0)