Skip to content
Prev Previous commit
Next Next commit
Try to fix a Sphinx warning.
  • Loading branch information
serhiy-storchaka committed Oct 31, 2025
commit 05a48bcbe7d89355916e3590390d19750fd13ee0
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ Other language changes

* Many functions related to compiling or parsing Python code, such as
:func:`compile`, :func:`ast.parse`, :func:`symtable.symtable`,
and :func:`importlib.InspectLoader.source_to_code` now allow to pass
and :func:`importlib.abc.InspectLoader.source_to_code` now allow to pass
Comment thread
serhiy-storchaka marked this conversation as resolved.
Outdated
the module name used when filtering syntax warnings.
(Contributed by Serhiy Storchaka in :gh:`135801`.)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Many functions related to compiling or parsing Python code, such as

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also fix any bugs where modules imported through the import system produce incorrect SyntaxWarnings? If so, that should be mentioned separately.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already mentioned: "the module name used when filtering syntax warnings." Can you propose better wording?

:func:`compile`, :func:`ast.parse`, :func:`symtable.symtable`, and
:func:`importlib.InspectLoader.source_to_code` now allow to pass the module
:func:`importlib.abc.InspectLoader.source_to_code` now allow to pass the module
name used when filtering syntax warnings.
Loading