Skip to content

Commit a3335d1

Browse files
authored
🚨 first iteration of ruff check error fixes (#2)
2 parents 2833309 + 9ae2549 commit a3335d1

File tree

198 files changed

+3671
-3987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+3671
-3987
lines changed

‎pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ preview = true
145145
"PLR6301", # pylint/R: no-self-use
146146
"PLW3201", # pylint/W: bad-dunder-method-name
147147
"FURB", # refurb
148+
# TODO:
149+
"PYI042",
150+
"PYI046",
151+
"PYI047",
148152
]
149153

150154
[tool.ruff.lint.flake8-annotations]

‎src/numpy-stubs/__config__.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from enum import Enum
22
from types import ModuleType
3-
from typing import Final, Literal as L, TypedDict, overload, type_check_only
4-
from typing_extensions import NotRequired
3+
from typing import Final, Literal as L, NotRequired, TypedDict, overload, type_check_only
54

65
_CompilerConfigDictValue = TypedDict(
76
"_CompilerConfigDictValue",
@@ -90,12 +89,10 @@ class DisplayModes(Enum):
9089
dicts = "dicts"
9190

9291
def _check_pyyaml() -> ModuleType: ...
93-
9492
@overload
9593
def show(mode: L["stdout"] = "stdout") -> None: ...
9694
@overload
9795
def show(mode: L["dicts"]) -> _ConfigDict: ...
98-
9996
@overload
10097
def show_config(mode: L["stdout"] = "stdout") -> None: ...
10198
@overload

0 commit comments

Comments
 (0)