Skip to content

Commit 9756d30

Browse files
committed
ignore more in stubs
1 parent 265a0d1 commit 9756d30

File tree

14 files changed

+2
-29
lines changed

14 files changed

+2
-29
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ quote-style = "single"
187187
"examples/**/*.py" = ["D101", "D103"]
188188
"tests/**/*.py" = ["D"]
189189
"docs/**/*.py" = ["D"]
190-
"stubs/**/*.pyi" = ["F401"]
190+
"stubs/**/*.pyi" = ["F401", "PYI044", "PYI035", "ANN401"]
191191

192192
[tool.pyright]
193193
stubPath = "stubs"

stubs/mlx/__init__.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
# mlx is imported as a package, primarily for mlx.nn
6-
__all__: list[str]
4+
__all__: list[str] = []

stubs/mlx/nn.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
class Module: ...

stubs/mlx_lm.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
from mlx.nn import Module

stubs/outlines/models/base.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from collections.abc import AsyncIterable, Iterable
42
from typing import Any
53

stubs/outlines/models/mlxlm.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
from mlx.nn import Module

stubs/outlines/models/transformers.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
from outlines.models.base import Model

stubs/outlines/models/vllm_offline.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
from outlines.models.base import Model

stubs/transformers/__init__.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
from . import modeling_utils, processing_utils, tokenization_utils
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
from typing import Any
42

53
class PreTrainedModel: ...

0 commit comments

Comments
 (0)