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

Skip to content
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
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ preview = true
"PLR6301", # pylint/R: no-self-use
"PLW3201", # pylint/W: bad-dunder-method-name
"FURB", # refurb
# TODO:
"PYI042",
"PYI046",
"PYI047",
]

[tool.ruff.lint.flake8-annotations]
Expand Down
5 changes: 1 addition & 4 deletions src/numpy-stubs/__config__.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from enum import Enum
from types import ModuleType
from typing import Final, Literal as L, TypedDict, overload, type_check_only
from typing_extensions import NotRequired
from typing import Final, Literal as L, NotRequired, TypedDict, overload, type_check_only

_CompilerConfigDictValue = TypedDict(
"_CompilerConfigDictValue",
Expand Down Expand Up @@ -90,12 +89,10 @@ class DisplayModes(Enum):
dicts = "dicts"

def _check_pyyaml() -> ModuleType: ...

@overload
def show(mode: L["stdout"] = "stdout") -> None: ...
@overload
def show(mode: L["dicts"]) -> _ConfigDict: ...

@overload
def show_config(mode: L["stdout"] = "stdout") -> None: ...
@overload
Expand Down
Loading
Loading