From 2a0127734ada54d792a2dcd040872fdb1beb1d24 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 20 Dec 2023 01:51:40 -0500 Subject: [PATCH 1/3] MNT: Make unused imports explicit ... instead of using a full file ignore. This allows catching a few more unused imports. --- .flake8 | 8 +------- lib/matplotlib/__init__.py | 11 +++++------ lib/matplotlib/_api/__init__.py | 2 +- lib/matplotlib/axes/__init__.py | 4 ++-- lib/matplotlib/image.py | 2 +- lib/matplotlib/pyplot.py | 26 ++++++++++++------------- lib/mpl_toolkits/axisartist/__init__.py | 11 ++++++----- lib/pylab.py | 2 +- 8 files changed, 30 insertions(+), 36 deletions(-) diff --git a/.flake8 b/.flake8 index 00cd213e0f79..6fc63524f227 100644 --- a/.flake8 +++ b/.flake8 @@ -31,26 +31,20 @@ exclude = .eggs per-file-ignores = - lib/matplotlib/__init__.py: E402, F401 lib/matplotlib/_animation_data.py: E501 - lib/matplotlib/_api/__init__.py: F401 lib/matplotlib/_cm.py: E122, E202, E203, E302 lib/matplotlib/_mathtext.py: E221, E251 lib/matplotlib/_mathtext_data.py: E122, E203, E261 - lib/matplotlib/axes/__init__.py: F401, F403 lib/matplotlib/backends/backend_template.py: F401 lib/matplotlib/font_manager.py: E501 - lib/matplotlib/image.py: F401, F403 lib/matplotlib/mathtext.py: E221 lib/matplotlib/pylab.py: F401, F403 - lib/matplotlib/pyplot.py: F401, F811 + lib/matplotlib/pyplot.py: F811 lib/matplotlib/tests/test_mathtext.py: E501 lib/matplotlib/transforms.py: E201, E202, E203 lib/matplotlib/tri/_triinterpolate.py: E201, E221 lib/mpl_toolkits/axes_grid1/axes_size.py: E272 - lib/mpl_toolkits/axisartist/__init__.py: F401 lib/mpl_toolkits/axisartist/angle_helper.py: E221 - lib/pylab.py: F401, F403 doc/conf.py: E402 galleries/users_explain/artists/paths.py: E402 diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 53f27c46314a..5836cd3a2ccf 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -151,9 +151,7 @@ import subprocess import sys import tempfile -import warnings -import numpy from packaging.version import parse as parse_version # cbook must import matplotlib only within function @@ -161,7 +159,8 @@ from . import _api, _version, cbook, _docstring, rcsetup from matplotlib.cbook import sanitize_sequence from matplotlib._api import MatplotlibDeprecationWarning -from matplotlib.rcsetup import validate_backend, cycler +from matplotlib.rcsetup import cycler # noqa: F401 +from matplotlib.rcsetup import validate_backend _log = logging.getLogger(__name__) @@ -246,7 +245,7 @@ def _check_versions(): # Quickfix to ensure Microsoft Visual C++ redistributable # DLLs are loaded before importing kiwisolver - from . import ft2font + from . import ft2font # noqa: F401 for modname, minver in [ ("cycler", "0.10"), @@ -1511,5 +1510,5 @@ def inner(ax, *args, data=None, **kwargs): # workaround: we must defer colormaps import to after loading rcParams, because # colormap creation depends on rcParams -from matplotlib.cm import _colormaps as colormaps -from matplotlib.colors import _color_sequences as color_sequences +from matplotlib.cm import _colormaps as colormaps # noqa: E402 +from matplotlib.colors import _color_sequences as color_sequences # noqa: E402 diff --git a/lib/matplotlib/_api/__init__.py b/lib/matplotlib/_api/__init__.py index 13319d867dc5..27d68529b7d4 100644 --- a/lib/matplotlib/_api/__init__.py +++ b/lib/matplotlib/_api/__init__.py @@ -16,7 +16,7 @@ import sys import warnings -from .deprecation import ( +from .deprecation import ( # noqa: F401 deprecated, warn_deprecated, rename_parameter, delete_parameter, make_keyword_only, deprecate_method_override, deprecate_privatize_attribute, diff --git a/lib/matplotlib/axes/__init__.py b/lib/matplotlib/axes/__init__.py index f8c40889bce7..9f2913957194 100644 --- a/lib/matplotlib/axes/__init__.py +++ b/lib/matplotlib/axes/__init__.py @@ -1,8 +1,8 @@ from . import _base -from ._axes import * +from ._axes import Axes # noqa: F401 # Backcompat. -from ._axes import Axes as Subplot +Subplot = Axes class _SubplotBaseMeta(type): diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index 3579bf57176f..8b672e5ad2b0 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -19,7 +19,7 @@ from matplotlib import _image # For user convenience, the names from _image are also imported into # the image namespace -from matplotlib._image import * +from matplotlib._image import * # noqa: F401, F403 import matplotlib.artist as martist from matplotlib.backend_bases import FigureCanvasBase import matplotlib.colors as mcolors diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 9272855d06ec..dc59bc809638 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -45,20 +45,20 @@ import importlib import inspect import logging -import re import sys import threading import time -from typing import cast, overload +from typing import TYPE_CHECKING, cast, overload -from cycler import cycler +from cycler import cycler # noqa: F401 import matplotlib import matplotlib.colorbar import matplotlib.image from matplotlib import _api -from matplotlib import ( # Re-exported for typing. +from matplotlib import ( # noqa: F401 Re-exported for typing. cm as cm, get_backend as get_backend, rcParams as rcParams, style as style) -from matplotlib import _pylab_helpers, interactive +from matplotlib import _pylab_helpers +from matplotlib import interactive # noqa: F401 from matplotlib import cbook from matplotlib import _docstring from matplotlib.backend_bases import ( @@ -67,19 +67,18 @@ from matplotlib.gridspec import GridSpec, SubplotSpec from matplotlib import rcsetup, rcParamsDefault, rcParamsOrig from matplotlib.artist import Artist -from matplotlib.axes import Axes, Subplot # type: ignore +from matplotlib.axes import Axes +from matplotlib.axes import Subplot # noqa: F401 from matplotlib.projections import PolarAxes # type: ignore from matplotlib import mlab # for detrend_none, window_hanning -from matplotlib.scale import get_scale_names +from matplotlib.scale import get_scale_names # noqa: F401 from matplotlib.cm import _colormaps -from matplotlib.cm import register_cmap # type: ignore +from matplotlib.cm import register_cmap # type: ignore # noqa: F401 from matplotlib.colors import _color_sequences import numpy as np -from typing import TYPE_CHECKING, cast - if TYPE_CHECKING: from collections.abc import Callable, Hashable, Iterable, Sequence import datetime @@ -131,10 +130,11 @@ from matplotlib.colors import Normalize from matplotlib.lines import Line2D, AxLine from matplotlib.text import Text, Annotation -from matplotlib.patches import Polygon, Rectangle, Circle, Arrow -from matplotlib.widgets import Button, Slider, Widget +from matplotlib.patches import Arrow, Circle, Rectangle # noqa: F401 +from matplotlib.patches import Polygon +from matplotlib.widgets import Button, Slider, Widget # noqa: F401 -from .ticker import ( +from .ticker import ( # noqa: F401 TickHelper, Formatter, FixedFormatter, NullFormatter, FuncFormatter, FormatStrFormatter, ScalarFormatter, LogFormatter, LogFormatterExponent, LogFormatterMathtext, Locator, IndexLocator, FixedLocator, NullLocator, diff --git a/lib/mpl_toolkits/axisartist/__init__.py b/lib/mpl_toolkits/axisartist/__init__.py index 47242cf7f0c5..7b8d8c08ac22 100644 --- a/lib/mpl_toolkits/axisartist/__init__.py +++ b/lib/mpl_toolkits/axisartist/__init__.py @@ -1,9 +1,10 @@ -from .axislines import ( - Axes, AxesZero, AxisArtistHelper, AxisArtistHelperRectlinear, +from .axislines import Axes +from .axislines import ( # noqa: F401 + AxesZero, AxisArtistHelper, AxisArtistHelperRectlinear, GridHelperBase, GridHelperRectlinear, Subplot, SubplotZero) -from .axis_artist import AxisArtist, GridlinesCollection -from .grid_helper_curvelinear import GridHelperCurveLinear -from .floating_axes import FloatingAxes, FloatingSubplot +from .axis_artist import AxisArtist, GridlinesCollection # noqa: F401 +from .grid_helper_curvelinear import GridHelperCurveLinear # noqa: F401 +from .floating_axes import FloatingAxes, FloatingSubplot # noqa: F401 from mpl_toolkits.axes_grid1.parasite_axes import ( host_axes_class_factory, parasite_axes_class_factory) diff --git a/lib/pylab.py b/lib/pylab.py index f9d135d36e2b..64ece55b1cb2 100644 --- a/lib/pylab.py +++ b/lib/pylab.py @@ -1,3 +1,3 @@ -from matplotlib.pylab import * +from matplotlib.pylab import * # noqa: F401, F403 import matplotlib.pylab __doc__ = matplotlib.pylab.__doc__ From 33008a6629e032cd799a6c7b05b8c9ca2134a0c8 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 20 Dec 2023 01:53:20 -0500 Subject: [PATCH 2/3] MNT: Make some long line exceptions explicit There's only one or two lines that need this exception, so the entire file doesn't need to be exempted. --- .flake8 | 2 -- lib/matplotlib/_animation_data.py | 2 +- lib/matplotlib/font_manager.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.flake8 b/.flake8 index 6fc63524f227..9d83159f2585 100644 --- a/.flake8 +++ b/.flake8 @@ -31,12 +31,10 @@ exclude = .eggs per-file-ignores = - lib/matplotlib/_animation_data.py: E501 lib/matplotlib/_cm.py: E122, E202, E203, E302 lib/matplotlib/_mathtext.py: E221, E251 lib/matplotlib/_mathtext_data.py: E122, E203, E261 lib/matplotlib/backends/backend_template.py: F401 - lib/matplotlib/font_manager.py: E501 lib/matplotlib/mathtext.py: E221 lib/matplotlib/pylab.py: F401, F403 lib/matplotlib/pyplot.py: F811 diff --git a/lib/matplotlib/_animation_data.py b/lib/matplotlib/_animation_data.py index 4bf2ae3148d2..8cbd312d8f14 100644 --- a/lib/matplotlib/_animation_data.py +++ b/lib/matplotlib/_animation_data.py @@ -251,7 +251,7 @@ }}, 0); }})() -""" +""" # noqa: E501 INCLUDED_FRAMES = """ diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index 9996c59ea1d8..a06c853548f2 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -206,7 +206,7 @@ def win32FontDirectory(): \\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts If the key is not found, ``%WINDIR%\Fonts`` will be returned. - """ + """ # noqa: E501 import winreg try: with winreg.OpenKey(winreg.HKEY_CURRENT_USER, MSFolders) as user: From 01e0541a175456810d0c21c63a94a54613af2537 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 20 Dec 2023 01:56:19 -0500 Subject: [PATCH 3/3] MNT: Fix E122 continuation line missing indentation There are really not very many of these to justify exempting the entire file, and they are easily fixed. --- .flake8 | 4 +- lib/matplotlib/_cm.py | 202 ++++++++++++++++--------------- lib/matplotlib/_mathtext_data.py | 75 +++++------- 3 files changed, 136 insertions(+), 145 deletions(-) diff --git a/.flake8 b/.flake8 index 9d83159f2585..40c07e0e324b 100644 --- a/.flake8 +++ b/.flake8 @@ -31,9 +31,9 @@ exclude = .eggs per-file-ignores = - lib/matplotlib/_cm.py: E122, E202, E203, E302 + lib/matplotlib/_cm.py: E202, E203, E302 lib/matplotlib/_mathtext.py: E221, E251 - lib/matplotlib/_mathtext_data.py: E122, E203, E261 + lib/matplotlib/_mathtext_data.py: E203, E261 lib/matplotlib/backends/backend_template.py: F401 lib/matplotlib/mathtext.py: E221 lib/matplotlib/pylab.py: F401, F403 diff --git a/lib/matplotlib/_cm.py b/lib/matplotlib/_cm.py index b7a7c878957f..1f1c36ac3240 100644 --- a/lib/matplotlib/_cm.py +++ b/lib/matplotlib/_cm.py @@ -965,52 +965,55 @@ def _g36(x): return 2 * x - 1 # gist_earth_data and gist_ncar_data were simplified by a script and some # manual effort. -_gist_earth_data = \ -{'red': ( -(0.0, 0.0, 0.0000), -(0.2824, 0.1882, 0.1882), -(0.4588, 0.2714, 0.2714), -(0.5490, 0.4719, 0.4719), -(0.6980, 0.7176, 0.7176), -(0.7882, 0.7553, 0.7553), -(1.0000, 0.9922, 0.9922), -), 'green': ( -(0.0, 0.0, 0.0000), -(0.0275, 0.0000, 0.0000), -(0.1098, 0.1893, 0.1893), -(0.1647, 0.3035, 0.3035), -(0.2078, 0.3841, 0.3841), -(0.2824, 0.5020, 0.5020), -(0.5216, 0.6397, 0.6397), -(0.6980, 0.7171, 0.7171), -(0.7882, 0.6392, 0.6392), -(0.7922, 0.6413, 0.6413), -(0.8000, 0.6447, 0.6447), -(0.8078, 0.6481, 0.6481), -(0.8157, 0.6549, 0.6549), -(0.8667, 0.6991, 0.6991), -(0.8745, 0.7103, 0.7103), -(0.8824, 0.7216, 0.7216), -(0.8902, 0.7323, 0.7323), -(0.8980, 0.7430, 0.7430), -(0.9412, 0.8275, 0.8275), -(0.9569, 0.8635, 0.8635), -(0.9647, 0.8816, 0.8816), -(0.9961, 0.9733, 0.9733), -(1.0000, 0.9843, 0.9843), -), 'blue': ( -(0.0, 0.0, 0.0000), -(0.0039, 0.1684, 0.1684), -(0.0078, 0.2212, 0.2212), -(0.0275, 0.4329, 0.4329), -(0.0314, 0.4549, 0.4549), -(0.2824, 0.5004, 0.5004), -(0.4667, 0.2748, 0.2748), -(0.5451, 0.3205, 0.3205), -(0.7843, 0.3961, 0.3961), -(0.8941, 0.6651, 0.6651), -(1.0000, 0.9843, 0.9843), -)} +_gist_earth_data = { + 'red': ( + (0.0, 0.0, 0.0000), + (0.2824, 0.1882, 0.1882), + (0.4588, 0.2714, 0.2714), + (0.5490, 0.4719, 0.4719), + (0.6980, 0.7176, 0.7176), + (0.7882, 0.7553, 0.7553), + (1.0000, 0.9922, 0.9922), + ), + 'green': ( + (0.0, 0.0, 0.0000), + (0.0275, 0.0000, 0.0000), + (0.1098, 0.1893, 0.1893), + (0.1647, 0.3035, 0.3035), + (0.2078, 0.3841, 0.3841), + (0.2824, 0.5020, 0.5020), + (0.5216, 0.6397, 0.6397), + (0.6980, 0.7171, 0.7171), + (0.7882, 0.6392, 0.6392), + (0.7922, 0.6413, 0.6413), + (0.8000, 0.6447, 0.6447), + (0.8078, 0.6481, 0.6481), + (0.8157, 0.6549, 0.6549), + (0.8667, 0.6991, 0.6991), + (0.8745, 0.7103, 0.7103), + (0.8824, 0.7216, 0.7216), + (0.8902, 0.7323, 0.7323), + (0.8980, 0.7430, 0.7430), + (0.9412, 0.8275, 0.8275), + (0.9569, 0.8635, 0.8635), + (0.9647, 0.8816, 0.8816), + (0.9961, 0.9733, 0.9733), + (1.0000, 0.9843, 0.9843), + ), + 'blue': ( + (0.0, 0.0, 0.0000), + (0.0039, 0.1684, 0.1684), + (0.0078, 0.2212, 0.2212), + (0.0275, 0.4329, 0.4329), + (0.0314, 0.4549, 0.4549), + (0.2824, 0.5004, 0.5004), + (0.4667, 0.2748, 0.2748), + (0.5451, 0.3205, 0.3205), + (0.7843, 0.3961, 0.3961), + (0.8941, 0.6651, 0.6651), + (1.0000, 0.9843, 0.9843), + ) +} _gist_gray_data = { 'red': gfunc[3], @@ -1024,58 +1027,61 @@ def _gist_heat_blue(x): return 4 * x - 3 _gist_heat_data = { 'red': _gist_heat_red, 'green': _gist_heat_green, 'blue': _gist_heat_blue} -_gist_ncar_data = \ -{'red': ( -(0.0, 0.0, 0.0000), -(0.3098, 0.0000, 0.0000), -(0.3725, 0.3993, 0.3993), -(0.4235, 0.5003, 0.5003), -(0.5333, 1.0000, 1.0000), -(0.7922, 1.0000, 1.0000), -(0.8471, 0.6218, 0.6218), -(0.8980, 0.9235, 0.9235), -(1.0000, 0.9961, 0.9961), -), 'green': ( -(0.0, 0.0, 0.0000), -(0.0510, 0.3722, 0.3722), -(0.1059, 0.0000, 0.0000), -(0.1569, 0.7202, 0.7202), -(0.1608, 0.7537, 0.7537), -(0.1647, 0.7752, 0.7752), -(0.2157, 1.0000, 1.0000), -(0.2588, 0.9804, 0.9804), -(0.2706, 0.9804, 0.9804), -(0.3176, 1.0000, 1.0000), -(0.3686, 0.8081, 0.8081), -(0.4275, 1.0000, 1.0000), -(0.5216, 1.0000, 1.0000), -(0.6314, 0.7292, 0.7292), -(0.6863, 0.2796, 0.2796), -(0.7451, 0.0000, 0.0000), -(0.7922, 0.0000, 0.0000), -(0.8431, 0.1753, 0.1753), -(0.8980, 0.5000, 0.5000), -(1.0000, 0.9725, 0.9725), -), 'blue': ( -(0.0, 0.5020, 0.5020), -(0.0510, 0.0222, 0.0222), -(0.1098, 1.0000, 1.0000), -(0.2039, 1.0000, 1.0000), -(0.2627, 0.6145, 0.6145), -(0.3216, 0.0000, 0.0000), -(0.4157, 0.0000, 0.0000), -(0.4745, 0.2342, 0.2342), -(0.5333, 0.0000, 0.0000), -(0.5804, 0.0000, 0.0000), -(0.6314, 0.0549, 0.0549), -(0.6902, 0.0000, 0.0000), -(0.7373, 0.0000, 0.0000), -(0.7922, 0.9738, 0.9738), -(0.8000, 1.0000, 1.0000), -(0.8431, 1.0000, 1.0000), -(0.8980, 0.9341, 0.9341), -(1.0000, 0.9961, 0.9961), -)} +_gist_ncar_data = { + 'red': ( + (0.0, 0.0, 0.0000), + (0.3098, 0.0000, 0.0000), + (0.3725, 0.3993, 0.3993), + (0.4235, 0.5003, 0.5003), + (0.5333, 1.0000, 1.0000), + (0.7922, 1.0000, 1.0000), + (0.8471, 0.6218, 0.6218), + (0.8980, 0.9235, 0.9235), + (1.0000, 0.9961, 0.9961), + ), + 'green': ( + (0.0, 0.0, 0.0000), + (0.0510, 0.3722, 0.3722), + (0.1059, 0.0000, 0.0000), + (0.1569, 0.7202, 0.7202), + (0.1608, 0.7537, 0.7537), + (0.1647, 0.7752, 0.7752), + (0.2157, 1.0000, 1.0000), + (0.2588, 0.9804, 0.9804), + (0.2706, 0.9804, 0.9804), + (0.3176, 1.0000, 1.0000), + (0.3686, 0.8081, 0.8081), + (0.4275, 1.0000, 1.0000), + (0.5216, 1.0000, 1.0000), + (0.6314, 0.7292, 0.7292), + (0.6863, 0.2796, 0.2796), + (0.7451, 0.0000, 0.0000), + (0.7922, 0.0000, 0.0000), + (0.8431, 0.1753, 0.1753), + (0.8980, 0.5000, 0.5000), + (1.0000, 0.9725, 0.9725), + ), + 'blue': ( + (0.0, 0.5020, 0.5020), + (0.0510, 0.0222, 0.0222), + (0.1098, 1.0000, 1.0000), + (0.2039, 1.0000, 1.0000), + (0.2627, 0.6145, 0.6145), + (0.3216, 0.0000, 0.0000), + (0.4157, 0.0000, 0.0000), + (0.4745, 0.2342, 0.2342), + (0.5333, 0.0000, 0.0000), + (0.5804, 0.0000, 0.0000), + (0.6314, 0.0549, 0.0549), + (0.6902, 0.0000, 0.0000), + (0.7373, 0.0000, 0.0000), + (0.7922, 0.9738, 0.9738), + (0.8000, 1.0000, 1.0000), + (0.8431, 1.0000, 1.0000), + (0.8980, 0.9341, 0.9341), + (1.0000, 0.9961, 0.9961), + ) +} _gist_rainbow_data = ( (0.000, (1.00, 0.00, 0.16)), diff --git a/lib/matplotlib/_mathtext_data.py b/lib/matplotlib/_mathtext_data.py index 8f0aece5de92..8928800a108b 100644 --- a/lib/matplotlib/_mathtext_data.py +++ b/lib/matplotlib/_mathtext_data.py @@ -1118,10 +1118,8 @@ _stix_virtual_fonts: dict[str, Union[dict[ str, list[_EntryTypeIn]], list[_EntryTypeIn]]] = { - 'bb': - { - "rm": - [ + 'bb': { + "rm": [ ("\N{DIGIT ZERO}", "\N{DIGIT NINE}", "rm", @@ -1194,9 +1192,8 @@ "\N{GREEK SMALL LETTER PI}", "rm", "\N{DOUBLE-STRUCK SMALL PI}"), - ], - "it": - [ + ], + "it": [ ("\N{DIGIT ZERO}", "\N{DIGIT NINE}", "rm", @@ -1289,9 +1286,8 @@ "\N{GREEK SMALL LETTER PI}", "it", "\N{DOUBLE-STRUCK SMALL PI}"), - ], - "bf": - [ + ], + "bf": [ ("\N{DIGIT ZERO}", "\N{DIGIT NINE}", "rm", @@ -1384,19 +1380,16 @@ "\N{GREEK SMALL LETTER PI}", "bf", "\N{DOUBLE-STRUCK SMALL PI}"), - ], - }, - 'cal': - [ + ], + }, + 'cal': [ ("\N{LATIN CAPITAL LETTER A}", "\N{LATIN CAPITAL LETTER Z}", "it", 0xe22d), - ], - 'frak': - { - "rm": - [ + ], + 'frak': { + "rm": [ ("\N{LATIN CAPITAL LETTER A}", "\N{LATIN CAPITAL LETTER B}", "rm", @@ -1438,8 +1431,7 @@ "rm", "\N{MATHEMATICAL FRAKTUR SMALL A}"), ], - "bf": - [ + "bf": [ ("\N{LATIN CAPITAL LETTER A}", "\N{LATIN CAPITAL LETTER Z}", "bf", @@ -1448,10 +1440,9 @@ "\N{LATIN SMALL LETTER Z}", "bf", "\N{MATHEMATICAL BOLD FRAKTUR SMALL A}"), - ], - }, - 'scr': - [ + ], + }, + 'scr': [ ("\N{LATIN CAPITAL LETTER A}", "\N{LATIN CAPITAL LETTER A}", "it", @@ -1532,11 +1523,9 @@ "\N{LATIN SMALL LETTER Z}", "it", "\N{MATHEMATICAL SCRIPT SMALL P}"), - ], - 'sf': - { - "rm": - [ + ], + 'sf': { + "rm": [ ("\N{DIGIT ZERO}", "\N{DIGIT NINE}", "rm", @@ -1581,9 +1570,8 @@ "\N{PARTIAL DIFFERENTIAL}", "rm", 0xe17c), - ], - "it": - [ + ], + "it": [ # These numerals are actually upright. We don't actually # want italic numerals ever. ("\N{DIGIT ZERO}", @@ -1626,9 +1614,8 @@ "\N{GREEK LUNATE EPSILON SYMBOL}", "it", 0xe1f1), - ], - "bf": - [ + ], + "bf": [ ("\N{DIGIT ZERO}", "\N{DIGIT NINE}", "bf", @@ -1681,9 +1668,8 @@ "\N{NABLA}", "bf", "\N{MATHEMATICAL SANS-SERIF BOLD NABLA}"), - ], - "bfit": - [ + ], + "bfit": [ ("\N{LATIN CAPITAL LETTER A}", "\N{LATIN CAPITAL LETTER Z}", "bfit", @@ -1700,10 +1686,9 @@ "\N{GREEK SMALL LETTER OMEGA}", "bfit", "\N{MATHEMATICAL BOLD ITALIC SMALL ALPHA}"), - ], - }, - 'tt': - [ + ], + }, + 'tt': [ ("\N{DIGIT ZERO}", "\N{DIGIT NINE}", "rm", @@ -1716,8 +1701,8 @@ "\N{LATIN SMALL LETTER Z}", "rm", "\N{MATHEMATICAL MONOSPACE SMALL A}") - ], - } + ], +} @overload