SF.net SVN: docutils:[10294] trunk/docutils
milde--- via Docutils-checkins <[email protected]> Sun, 25 Jan 2026 14:12:57 +0000
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 10294
http://sourceforge.net/p/docutils/code/10294
Author: milde
Date: 2026-01-25 14:12:56 +0000 (Sun, 25 Jan 2026)
Log Message:
-----------
Fix type annotation for get_default_settings()
Apply patch #216 by Dmitry Shachnev to fix type annotation
of `get_default_settings():
It accepts classes themselves, not instances of those classes.
Modified Paths:
--------------
trunk/docutils/HISTORY.rst
trunk/docutils/docutils/frontend.py
Modified: trunk/docutils/HISTORY.rst
===================================================================
--- trunk/docutils/HISTORY.rst 2026-01-21 15:18:32 UTC (rev 10293)
+++ trunk/docutils/HISTORY.rst 2026-01-25 14:12:56 UTC (rev 10294)
@@ -17,6 +17,10 @@
Release 0.23b.dev (unpublished)
===============================
+* docutils/frontend.py
+
+ - Apply patch #216 by Dmitry Shachnev: fix type annotations.
+
* docutils/parsers/rst/directives/body.py
- Add source and line info to <rubric> elements.
Modified: trunk/docutils/docutils/frontend.py
===================================================================
--- trunk/docutils/docutils/frontend.py 2026-01-21 15:18:32 UTC (rev 10293)
+++ trunk/docutils/docutils/frontend.py 2026-01-25 14:12:56 UTC (rev 10294)
@@ -1162,7 +1162,7 @@
"""Warning for deprecated configuration file features."""
-def get_default_settings(*components: SettingsSpec) -> Values:
+def get_default_settings(*components: type[SettingsSpec]) -> Values:
"""Return default runtime settings for `components`.
Return a `frontend.Values` instance with defaults for generic Docutils
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.