Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mistune for openSUSE:Factory 
checked in at 2025-02-25 16:40:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mistune (Old)
 and      /work/SRC/openSUSE:Factory/.python-mistune.new.1873 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mistune"

Tue Feb 25 16:40:02 2025 rev:23 rq:1248191 version:3.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mistune/python-mistune.changes    
2025-02-11 21:20:28.903982305 +0100
+++ /work/SRC/openSUSE:Factory/.python-mistune.new.1873/python-mistune.changes  
2025-02-25 16:40:48.921934210 +0100
@@ -1,0 +2,6 @@
+Mon Feb 24 14:34:04 UTC 2025 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Update to 3.1.2
+  * plugin: Fix footnote plugins when rendering ast
+
+-------------------------------------------------------------------

Old:
----
  mistune-3.1.1.tar.gz

New:
----
  mistune-3.1.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-mistune.spec ++++++
--- /var/tmp/diff_new_pack.mJVGMq/_old  2025-02-25 16:40:49.629963790 +0100
+++ /var/tmp/diff_new_pack.mJVGMq/_new  2025-02-25 16:40:49.629963790 +0100
@@ -19,7 +19,7 @@
 %define modname mistune
 %{?sle15_python_module_pythons}
 Name:           python-%{modname}
-Version:        3.1.1
+Version:        3.1.2
 Release:        0
 Summary:        Python Markdown parser with renderers and plugins
 License:        BSD-3-Clause

++++++ mistune-3.1.1.tar.gz -> mistune-3.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mistune-3.1.1/docs/changes.rst 
new/mistune-3.1.2/docs/changes.rst
--- old/mistune-3.1.1/docs/changes.rst  2025-01-28 14:31:19.000000000 +0100
+++ new/mistune-3.1.2/docs/changes.rst  2025-02-19 04:40:27.000000000 +0100
@@ -3,6 +3,13 @@
 
 Here is the full history of mistune v3.
 
+Version 3.1.2
+-------------
+
+**Released on Feb 19, 2025**
+
+* Fix ``footnotes`` plugin for AST renderer
+
 Version 3.1.1
 -------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mistune-3.1.1/src/mistune/__init__.py 
new/mistune-3.1.2/src/mistune/__init__.py
--- old/mistune-3.1.1/src/mistune/__init__.py   2025-01-28 14:31:19.000000000 
+0100
+++ new/mistune-3.1.2/src/mistune/__init__.py   2025-02-19 04:40:27.000000000 
+0100
@@ -92,5 +92,5 @@
     'html', 'create_markdown', 'markdown',
 ]
 
-__version__ = '3.1.1'
+__version__ = '3.1.2'
 __homepage__ = 'https://mistune.lepture.com/'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mistune-3.1.1/src/mistune/markdown.py 
new/mistune-3.1.2/src/mistune/markdown.py
--- old/mistune-3.1.1/src/mistune/markdown.py   2025-01-28 14:31:19.000000000 
+0100
+++ new/mistune-3.1.2/src/mistune/markdown.py   2025-02-19 04:40:27.000000000 
+0100
@@ -40,7 +40,7 @@
         self.before_parse_hooks: List[Callable[["Markdown", BlockState], 
None]] = []
         self.before_render_hooks: List[Callable[["Markdown", BlockState], 
Any]] = []
         self.after_render_hooks: List[
-            Callable[["Markdown", Union[str, List[Dict[str, Any]]], 
BlockState], str]
+            Callable[["Markdown", Union[str, List[Dict[str, Any]]], 
BlockState], Union[str, List[Dict[str, Any]]]]
         ] = []
 
         if plugins:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mistune-3.1.1/src/mistune/plugins/footnotes.py 
new/mistune-3.1.2/src/mistune/plugins/footnotes.py
--- old/mistune-3.1.1/src/mistune/plugins/footnotes.py  2025-01-28 
14:31:19.000000000 +0100
+++ new/mistune-3.1.2/src/mistune/plugins/footnotes.py  2025-02-19 
04:40:27.000000000 +0100
@@ -94,8 +94,7 @@
 
 def md_footnotes_hook(
     md: "Markdown", result: Union[str, List[Dict[str, Any]]], state: BlockState
-) -> str:
-    assert isinstance(result, str)
+) -> Union[str, List[Dict[str, Any]]]:
     notes = state.env.get("footnotes")
     if not notes:
         return result
@@ -107,8 +106,7 @@
     state = BlockState()
     state.tokens = [{'type': 'footnotes', 'children': children}]
     output = md.render_state(state)
-    assert isinstance(output, str)
-    return result + output
+    return result + output  # type: ignore[operator]
 
 
 def render_footnote_ref(renderer: "BaseRenderer", key: str, index: int) -> str:

Reply via email to