Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecate public access to many mathtext internals. #18378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ per-file-ignores =

lib/matplotlib/__init__.py: F401
lib/matplotlib/_cm.py: E202, E203, E302
lib/matplotlib/_mathtext.py: E221, E251
lib/matplotlib/_mathtext_data.py: E203, E261
lib/matplotlib/animation.py: F401
lib/matplotlib/axes/__init__.py: F401, F403
Expand Down
1 change: 1 addition & 0 deletions doc/api/mathtext_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
:members:
:undoc-members:
:show-inheritance:
:exclude-members: Box, Char, ComputerModernFontConstants, DejaVuSansFontConstants, DejaVuSerifFontConstants, FontConstantsBase, Fonts, Glue, Kern, Node, Parser, STIXFontConstants, STIXSansFontConstants, Ship, StandardPsFonts, TruetypeFonts
6 changes: 3 additions & 3 deletions doc/api/next_api_changes/deprecations/18004-AL.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*facename* parameter of `.mathtext.Fonts.render_glyph`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*facename* parameter of ``mathtext.Fonts.render_glyph``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This parameter was renamed to *font* for consistency with the rest of the
`.Fonts` API.
``Fonts`` API.
9 changes: 9 additions & 0 deletions doc/api/next_api_changes/deprecations/18378-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Deprecation of mathtext internals
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following API elements previously exposed by the :mod:`.mathtext` module
are considered to be implementation details of and public access to them is
deprecated: ``Fonts`` and all its subclasses, ``FontConstantsBase`` and all its
subclasses, ``Node`` and all its subclasses, ``Ship``, ``ship``, ``Error``,
``Parser``, ``SHRINK_FACTOR``, ``GROW_FACTOR``, ``NUM_SIZE_LEVELS``,
``latex_to_bakoma``, ``latex_to_cmex``, ``latex_to_standard``,
``stix_virtual_fonts``, ``tex2uni``.
Loading