Skip to content

Commit ac1c1da

Browse files
committed
Run ruff format
1 parent 920b14f commit ac1c1da

2 files changed

Lines changed: 11 additions & 31 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ tests = [
1414
"mypy ==1.15.*",
1515
"pyright",
1616

17-
# Typed dependencies and stubs
17+
# External type stubs and optional dependencies
18+
"PyOpenGL",
1819
"matplotlib >=3.8",
19-
"numpy >=2",
2020
"pandas-stubs",
2121
"pytest",
2222
"scipy-stubs",
@@ -29,9 +29,6 @@ tests = [
2929
"scikit-learn",
3030
"sympy",
3131
"vispy",
32-
33-
# Optional vispy dependency
34-
"PyOpenGL",
3532
]
3633
dev = [{ include-group = "hygiene" }, { include-group = "tests" }]
3734

stubs/matplotlib/_mathtext.pyi

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import enum
22
import functools
33
import sys
4-
from typing import Literal
5-
64
from _typeshed import Incomplete
5+
from typing import Literal
76

87
from .font_manager import FontProperties
98
from .mathtext import MathtextBackend
@@ -18,9 +17,7 @@ else:
1817
def get_unicode_index(symbol: str, math: bool = True) -> int: ...
1918

2019
class Fonts:
21-
def __init__(
22-
self, default_font_prop: FontProperties, mathtext_backend: MathtextBackend
23-
) -> None: ...
20+
def __init__(self, default_font_prop: FontProperties, mathtext_backend: MathtextBackend) -> None: ...
2421
def get_kern(
2522
self,
2623
font1,
@@ -33,15 +30,9 @@ class Fonts:
3330
fontsize2: float,
3431
dpi: float,
3532
) -> float: ...
36-
def get_metrics(
37-
self, font: str, font_class: str, sym: str, fontsize: float, dpi: float
38-
) -> object: ...
39-
def render_glyph(
40-
self, ox: float, oy: float, font, font_class, sym, fontsize: float, dpi: float
41-
) -> None: ...
42-
def render_rect_filled(
43-
self, x1: float, y1: float, x2: float, y2: float
44-
) -> None: ...
33+
def get_metrics(self, font: str, font_class: str, sym: str, fontsize: float, dpi: float) -> object: ...
34+
def render_glyph(self, ox: float, oy: float, font, font_class, sym, fontsize: float, dpi: float) -> None: ...
35+
def render_rect_filled(self, x1: float, y1: float, x2: float, y2: float) -> None: ...
4536
def get_xheight(self, font, fontsize: float, dpi: float) -> float: ...
4637
def get_underline_thickness(self, font, fontsize: float, dpi: float) -> float: ...
4738
def get_used_characters(self): ...
@@ -166,9 +157,7 @@ class Hlist(List):
166157
do_kern: bool = True,
167158
) -> None: ...
168159
def kern(self) -> None: ...
169-
def hpack(
170-
self, w: float = 0, m: Literal["exactly", "additional"] = "additional"
171-
) -> None: ...
160+
def hpack(self, w: float = 0, m: Literal["exactly", "additional"] = "additional") -> None: ...
172161

173162
class Vlist(List):
174163
def __init__(self, elements, h=0, m=...) -> None: ...
@@ -206,22 +195,16 @@ class Kern(Node):
206195
def shrink(self) -> None: ...
207196

208197
class AutoHeightChar(Hlist):
209-
def __init__(
210-
self, c, height: float, depth: float, state, always=False, factor=None
211-
) -> None: ...
198+
def __init__(self, c, height: float, depth: float, state, always=False, factor=None) -> None: ...
212199

213200
class AutoWidthChar(Hlist):
214-
def __init__(
215-
self, c, width: float, state, always=False, char_class=Char
216-
) -> None: ...
201+
def __init__(self, c, width: float, state, always=False, char_class=Char) -> None: ...
217202

218203
def ship(ox, oy, box) -> None: ...
219204
def Error(msg): ...
220205

221206
class ParserState:
222-
def __init__(
223-
self, font_output, font, font_class, fontsize: float, dpi: float
224-
) -> None: ...
207+
def __init__(self, font_output, font, font_class, fontsize: float, dpi: float) -> None: ...
225208
def copy(self) -> ParserState: ...
226209
@property
227210
def font(self): ...

0 commit comments

Comments
 (0)