File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff 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
377375def load_extended (file : FileLike , namehint : str = "" ) -> Surface :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments