Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0cfe721

Browse files
Update nibabel/__init__.pyi
1 parent 435913a commit 0cfe721

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎nibabel/__init__.pyi‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ from nibabel.pkg_info import get_pkg_info as _get_pkg_info
4444
from nibabel.spm2analyze import Spm2AnalyzeHeader, Spm2AnalyzeImage
4545
from nibabel.spm99analyze import Spm99AnalyzeHeader, Spm99AnalyzeImage
4646

47-
try:
48-
from pytest import ExitCode # type: ignore[import] # noqa: PT013
49-
except (ImportError, ModuleNotFoundError):
50-
class ExitCode(int): ... # type: ignore[no-redef]
51-
5247
def get_info() -> dict[str, str]: ...
5348
def test(
5449
label: Any = None,
@@ -58,10 +53,10 @@ def test(
5853
coverage: bool = False,
5954
raise_warnings: Any = None,
6055
timer: Any = False,
61-
) -> ExitCode: ...
56+
) -> int: ...
6257
def bench(
6358
label: Any = None, verbose: int = 1, extra_argv: list[Any] | None = None
64-
) -> ExitCode: ...
59+
) -> int: ...
6560

6661
__all__ = [
6762
'AnalyzeHeader',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /