[go: up one dir, main page]

Menu

Commit [r9956]  Maximize  Restore  History

Trim down overhead of type hints.

get_(reader|parser|writer)class():
Don't use @overload for individual values of the same type that return
a class that is a subclass of a well defined abstract base class.

docutils.nodes:
There is no need to add a TypeVar for the type of a default value when
the alternative is any ``Any | _DefaultT``.

Cf. patches #212.

milde 2024-10-20

changed /trunk/docutils/docutils/nodes.py
changed /trunk/docutils/docutils/parsers/__init__.py
changed /trunk/docutils/docutils/readers/__init__.py
changed /trunk/docutils/docutils/writers/__init__.py