Skip to content

Commit c9c964b

Browse files
committed
✏️ Minor fixes
1 parent e9b9312 commit c9c964b

26 files changed

Lines changed: 247 additions & 204 deletions

‎docs/document/sphinx/index.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ in place. Often the documentation is also stored in the same :doc:`Git
2424
<Python4DataScience:productive/git/index>` repository, so that the creation of
2525
the latest software documentation remains easy.
2626

27-
Sphinx is also used in projects outside the Python community, e.g. for the
28-
documentation of the Linux kernel: `Kernel documentation update
27+
Sphinx is also used in projects outside the Python community, for example for
28+
the documentation of the Linux kernel: `Kernel documentation update
2929
<https://lwn.net/Articles/705224/>`_.
3030

3131
`Read the Docs <https://about.readthedocs.com/>`_ was developed to forther

‎docs/document/sphinx/intersphinx.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In ``docs/conf.py`` Intersphinx must be indicated as an extension:
1616
"sphinx.ext.intersphinx",
1717
]
1818
19-
External Sphinx documentation can then be specified, e.g. with:
19+
External Sphinx documentation can then be specified, for example with:
2020

2121
.. code-block:: python
2222
@@ -72,7 +72,7 @@ of the following variants can be specified:
7272
Custom links
7373
------------
7474

75-
You can also create your own ``intersphinx`` assignments, e.g. if
75+
You can also create your own ``intersphinx`` assignments, for example if
7676
``objects.inv`` in `Beautiful Soup
7777
<https://bugs.launchpad.net/beautifulsoup/+bug/1453370>`_ has errors.
7878

@@ -144,7 +144,7 @@ The error can be corrected with:
144144
Add roles
145145
---------
146146

147-
If you get an error message that a certain text role is unknown, e.g.
147+
If you get an error message that a certain text role is unknown, for example
148148

149149
.. code-block:: console
150150

‎docs/editors.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ file as a module.
1818
.. code-block:: console
1919
2020
$ python3
21-
Python 3.14.0 (main, Oct 14 2025, 21:10:22) [Clang 20.1.4 ] on linux
21+
Python 3.15.1 (main, Oct 21 2026, 17:39:16) [Clang 23.1.3 ] on linux
2222
Type "help", "copyright", "credits" or "license" for more information.
2323
>>>
2424
@@ -30,7 +30,7 @@ file as a module.
3030
3131
3232
$ python3
33-
Python 3.14.0 (main, Oct 14 2025, 21:10:22) [Clang 20.1.4 ] on darwin
33+
Python 3.15.1 (main, Oct 21 2026, 17:39:16) [Clang 23.1.3 ] on darwin
3434
Type "help", "copyright", "credits" or "license" for more information.
3535
>>>
3636
@@ -42,7 +42,7 @@ file as a module.
4242
.. tab:: Windows
4343

4444
You can start the interactive Python shell in :menuselection:`Start -->
45-
Applications --> Python 3.14`.
45+
Applications --> Python 3.15`.
4646

4747
Alternatively, you can search for the directly executable file
4848
:file:`Python.exe`, for example in
@@ -74,7 +74,7 @@ code editing and debugging. It is very easy to run on the various platforms:
7474

7575
.. code-block:: console
7676
77-
$ idle-python3.14
77+
$ idle-python3.15
7878
7979
.. tab:: Windows
8080

‎docs/functions/index.rst‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,17 @@ Inspired by :doc:`Python4DataScience:productive/qa/mypy`, so-called *type
7070
hints* were introduced in Python, with which the types for :doc:`parameters
7171
<params>` and return values can be defined, in our :func:`fact` example with:
7272

73-
.. blacken-docs:off
74-
7573
.. code-block:: python
7674
7775
def fact(n: int) -> int:
78-
...
79-
80-
.. blacken-docs:on
76+
pass
8177
8278
or:
8379

84-
.. blacken-docs:off
85-
8680
.. code-block:: python
8781
8882
def factlist(flist: list[float]) -> list[float]:
89-
...
90-
91-
.. blacken-docs:on
83+
pass
9284
9385
We receive the types with the ``__annotations__`` attribute at runtime:
9486

@@ -97,7 +89,7 @@ We receive the types with the ``__annotations__`` attribute at runtime:
9789
>>> fact.__annotations__
9890
{'n': <class 'int'>, 'return': <class 'int'>}
9991
>>> factlist.__annotations__
100-
{'list': list[float], 'return': list[float]}
92+
{'flist': list[float], 'return': list[float]}
10193
10294
However, there is **no** type check at runtime.
10395

‎docs/install.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ installed, this usually isn’t a problem either.
7575
If different Python versions are required, for example to test libraries with
7676
:doc:`test/tox`, I use :term:`uv`. This allows not only older CPython versions
7777
to be installed but also `PyPy <https://pypy.org>`_ or free-threaded Python
78-
3.14 with ``uv python install pypy@3.15`` or ``uv python install
78+
3.15 with ``uv python install pypy@3.15`` or ``uv python install
7979
--python-preference only-managed 3.15t``.
8080

8181
.. tip::

‎docs/libs/install.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ Python installation
378378

379379
The current Python version can be installed with ``uv python install``.
380380
Alternatively, a specific version can be installed with :samp:`uv python install
381-
{3.14}`. However, you can install not only older CPython versions, but also
382-
`PyPy <https://pypy.org>`_ with :samp:`uv python install pypy@{3.14}` or
381+
{3.15}`. However, you can install not only older CPython versions, but also
382+
`PyPy <https://pypy.org>`_ with :samp:`uv python install pypy@{3.12}` or
383383
Free-threaded Python with :samp:`uv python install --python-preferenc
384-
only-managed {3.14t}`. You can see the Python versions that are already
384+
only-managed {3.15t}`. You can see the Python versions that are already
385385
installed with ``uv python list``. You can call up an installed Python version
386-
with :samp:`uv run --python {3.14} python`.
386+
with :samp:`uv run --python {3.15} python`.
387387

388388
Create project structure
389389
~~~~~~~~~~~~~~~~~~~~~~~~

‎docs/modules/index.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Lines 25 to 26
142142
143143
>>> import wc, importlib
144144
>>> importlib.reload(wc)
145-
<module 'wc' from '/home/veit/.local/lib/python3.14/site-packages/wc.py'>
145+
<module 'wc' from '/home/veit/.local/lib/python3.15/site-packages/wc.py'>
146146
* as a script it is executed with the name ``__main__`` and the function
147147
``words_occur()```` is called:
148148

‎docs/packs/apps.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interfaces)`. We can also create them with ``uv init --package``:
3535

3636
.. literalinclude:: myapp/pyproject.toml
3737
:caption: myapp/pyproject.toml
38-
:lines: 12-13
38+
:lines: 19
3939

4040
:file:`myapp/src/myapp/__init__.py`
4141
The module defines a CLI function :func:`main`:

‎docs/packs/binary-extensions.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Binary Extensions for Mac
336336
~~~~~~~~~~~~~~~~~~~~~~~~~
337337

338338
Binary compatibility on macOS is determined by the target system for the minimal
339-
implementation, e.g. *10.9*, which is defined in the environment variable
339+
implementation, for example *10.9*, which is defined in the environment variable
340340
``MACOSX_DEPLOYMENT_TARGET``. When creating with setuptools/distutils the
341341
deployment target is specified with the flag ``--plat-name``, for example
342342
``macosx-10.9-x86_64``. For more information on deployment targets for Mac OS

‎docs/packs/distribution.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ structure for packages.
763763

764764
.. literalinclude:: mypack/pyproject.toml
765765
:caption: mypack/pyproject.toml
766-
:emphasize-lines: 21
766+
:emphasize-lines: 19
767767

768768
:file:`mypack/src/mypack/__init__.py`
769769
The module defines a CLI function :func:`main`:

0 commit comments

Comments
 (0)