Skip to content

Commit 343a2d0

Browse files
committed
Bump ruff to 0.15
1 parent df62ea6 commit 343a2d0

File tree

7 files changed

+11
-1
lines changed

7 files changed

+11
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "microsoft-python-type-stubs"
77
version = "0"
88

99
[dependency-groups]
10-
hygiene = ["ruff ==0.14.*"]
10+
hygiene = ["ruff ==0.15.*"]
1111
tests = [
1212
# Tools used for testing
1313
"docopt-ng",
@@ -71,6 +71,9 @@ ignore = [
7171
# TODO: Investigate and fix or configure
7272
"PYI051", # Request for autofix: https://github.com/astral-sh/ruff/issues/14185
7373

74+
# TODO: Manually simplify generator types first
75+
"UP043",
76+
7477
###
7578
# Rules we don't want or don't agree with
7679
###

stubs/matplotlib/font_manager.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def win32FontDirectory(): ...
2626
def win32InstalledFonts(directory=..., fontext=...): ...
2727
def get_fontconfig_fonts(fontext=...): ...
2828
def findSystemFonts(fontpaths=..., fontext=...): ...
29+
2930
@dataclass
3031
class FontEntry:
3132
fname: str = ...

stubs/sympy-stubs/logic/boolalg.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ from sympy.core.singleton import Singleton
1212
from sympy.core.symbol import Symbol
1313

1414
def as_Boolean(e) -> BooleanTrue | BooleanFalse | Symbol | Boolean: ...
15+
1516
@sympify_method_args
1617
class Boolean(Basic):
1718
__slots__ = ...

stubs/sympy-stubs/polys/numberfields/utilities.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def is_int(c) -> Any | Literal[True]: ...
88
def get_num_denom(c) -> tuple[Any, Any]: ...
99
@public
1010
def extract_fundamental_discriminant(a) -> tuple[dict[Any, Any], dict[int, int]] | tuple[dict[Any, Any], dict[Any, Any]]: ...
11+
1112
@public
1213
class AlgIntPowers:
1314
def __init__(self, T, modulus=...) -> None: ...

stubs/sympy-stubs/polys/polytools.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ else:
2323
NotImplementedType: TypeAlias = Any
2424

2525
def _polifyit(func) -> _Wrapped[..., Any, ..., Any]: ...
26+
2627
@public
2728
class Poly(Basic):
2829
__slots__ = ...
@@ -394,6 +395,7 @@ def reduced(f, G, *gens, **args) -> tuple[list[Any], Any]: ...
394395
def groebner(F, *gens, **args) -> Any: ...
395396
@public
396397
def is_zero_dimensional(F, *gens, **args) -> Any: ...
398+
397399
@public
398400
class GroebnerBasis(Basic):
399401
def __new__(cls, F, *gens, **args) -> Self: ...

stubs/sympy-stubs/polys/rootoftools.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ _complexes_cache = ...
1919

2020
@public
2121
def rootof(f, x, index=..., radicals=..., expand=...) -> Any: ...
22+
2223
@public
2324
class RootOf(Expr):
2425
__slots__ = ...

stubs/sympy-stubs/tensor/tensor.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class TensorSymmetry(Basic):
155155
def no_symmetry(cls, rank) -> TensorSymmetry: ...
156156

157157
def tensorsymmetry(*args) -> TensorSymmetry: ...
158+
158159
@deprecated(
159160
"TensorType is deprecated. Use tensor_heads() instead.",
160161
deprecated_since_version="1.5",

0 commit comments

Comments
 (0)