From ae70cfafd8be97cee69f8b95776f562931b2f458 Mon Sep 17 00:00:00 2001 From: zoldalma <46655437+zoldalma999@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:01:38 +0200 Subject: [PATCH] Fix minor formatting issues --- docs/reST/ext/documenters.py | 2 +- docs/reST/ref/time.rst | 1 - pyproject.toml | 2 +- src_py/cursors.py | 9 +++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/reST/ext/documenters.py b/docs/reST/ext/documenters.py index 1e2057714c..491fa18966 100644 --- a/docs/reST/ext/documenters.py +++ b/docs/reST/ext/documenters.py @@ -64,7 +64,7 @@ def get_doc(self, encoding=None, ignore=1): return [""] - def process_doc(self, docstrings: list[str]): + def process_doc(self, docstrings): for docstring in docstrings: if not docstring: continue diff --git a/docs/reST/ref/time.rst b/docs/reST/ref/time.rst index 4d57f613fc..fa82e6a8d8 100644 --- a/docs/reST/ref/time.rst +++ b/docs/reST/ref/time.rst @@ -8,4 +8,3 @@ .. autopgclass:: Clock :members: tick, tick_busy_loop, get_time, get_rawtime, get_fps - diff --git a/pyproject.toml b/pyproject.toml index 8713c3d411..340ad52550 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,7 @@ requires = [ "ninja<=1.11.1.1", "cython<=3.0.11", "sphinx<=7.2.6", - "autoapi<=3.3.2", + "sphinx-autoapi<=3.3.2", ] build-backend = 'mesonpy' diff --git a/src_py/cursors.py b/src_py/cursors.py index 24af5b0bc3..8431f18a0e 100644 --- a/src_py/cursors.py +++ b/src_py/cursors.py @@ -133,10 +133,11 @@ class Cursor: **Creating a cursor without passing arguments** - In addition to the cursor constants available and described above, - you can also call ``pygame.cursors.Cursor()``, and your cursor is ready (doing that is the same as - calling ``pygame.cursors.Cursor(pygame.SYSTEM_CURSOR_ARROW)``. - Doing one of those calls actually creates a system cursor using the default native image. + In addition to the cursor constants available and described above, you can + also call ``pygame.cursors.Cursor()``, and your cursor is ready (doing that + is the same as calling ``pygame.cursors.Cursor(pygame.SYSTEM_CURSOR_ARROW)``. + Doing one of those calls actually creates a system cursor using the default + native image. **Creating a color cursor**