Skip to content

Commit 0c10905

Browse files
committed
Replace Ellipsis with ...
1 parent 3d20ef2 commit 0c10905

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

buildconfig/stubs/pygame/image.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,7 @@ def load_basic(file: FileLike, /) -> Surface:
369369
file-like object, or a pathlib.Path.
370370
371371
This function only supports loading "basic" image format, ie ``BMP``
372-
format.
373-
374-
This function is always available, no matter how pygame was built.
372+
format. This function is always available, no matter how pygame was built.
375373
"""
376374

377375
def load_extended(file: FileLike, namehint: str = "") -> Surface:

docs/reST/ext/documenters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def build_signatures(object):
5353

5454
# Shorten "pygame.module.X" types to "X"
5555
ret = re.sub(r"pygame(.[a-zA-Z0-9_]+)+", lambda x: x.group(1)[1:], ret)
56+
ret = ret.replace("Ellipsis", "...")
5657

5758
yield f"| :sg:`{name}{arg_string} -> {ret}`"
5859

src_c/doc/surface_doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define DOC_SURFACE_UNLOCK "unlock() -> None\nUnlock the Surface memory from pixel access."
1717
#define DOC_SURFACE_MUSTLOCK "mustlock() -> bool\nTest if the Surface requires locking."
1818
#define DOC_SURFACE_GETLOCKED "get_locked() -> bool\nTest if the Surface is current locked."
19-
#define DOC_SURFACE_GETLOCKS "get_locks() -> tuple[Any, Ellipsis]\nGets the locks for the Surface."
19+
#define DOC_SURFACE_GETLOCKS "get_locks() -> tuple[Any, ...]\nGets the locks for the Surface."
2020
#define DOC_SURFACE_GETAT "get_at(x_y, /) -> Color\nGet the color value at a single pixel."
2121
#define DOC_SURFACE_SETAT "set_at(x_y, color, /) -> None\nSet the color value for a single pixel."
2222
#define DOC_SURFACE_GETATMAPPED "get_at_mapped(x_y, /) -> int\nGet the mapped color value at a single pixel."

0 commit comments

Comments
 (0)