Skip to content

Commit d883db2

Browse files
committed
Fix all reportAssignmentType
1 parent 7e9bfa9 commit d883db2

File tree

7 files changed

+4
-8
lines changed

7 files changed

+4
-8
lines changed

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ reportSelfClsParameterName = false
8585
# Error reports to fix in code
8686
reportArgumentType = "none" # TODO
8787
reportAssertTypeFailure = "none" # TODO
88-
reportAssignmentType = "none" # TODO
8988
reportAttributeAccessIssue = "none" # TODO
9089
reportFunctionMemberAccess = "none" # TODO
9190
reportGeneralTypeIssues = "none" # TODO

stubs/matplotlib/projections/geo.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Sequence
2+
from typing_extensions import NoReturn
23

34
import numpy as np
45
from matplotlib.axes import Axes
@@ -23,7 +24,7 @@ class GeoAxes(Axes):
2324
def set_yscale(self, *args, **kwargs) -> None: ...
2425

2526
set_xscale = set_yscale
26-
def set_xlim(self, *args, **kwargs) -> None: ...
27+
def set_xlim(self, *args, **kwargs) -> NoReturn: ...
2728
set_ylim = set_xlim
2829
def format_coord(self, lon, lat) -> str: ...
2930
def set_longitude_grid(self, degrees: float) -> None: ...

stubs/skimage/measure/_regionprops.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import numpy as np
88
from numpy.typing import ArrayLike
99
from scipy import ndimage as ndi
1010
from scipy.spatial.distance import pdist
11-
from skimage.measure._regionprops import RegionProperties
1211

1312
from . import _moments
1413
from ._find_contours import find_contours

stubs/vispy/geometry/rect.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import numpy as np
2-
from vispy.util.svg.shapes import Rect
32

43
class Rect(object):
54
def __init__(self, *args, **kwargs): ...

stubs/vispy/visuals/line/arrow.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
22
from numpy.typing import ArrayLike
33
from vispy.util.svg.color import Color
4-
from vispy.visuals.line.arrow import ArrowVisual
54

65
from ... import gloo, glsl
76
from ..transforms._util import as_vec4

stubs/vispy/visuals/transforms/linear.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
22
from numpy import ndarray
33
from numpy.typing import ArrayLike, NDArray
4-
from vispy.visuals.transforms.linear import STTransform
54

65
from ...geometry import Rect
76
from ...util import transforms

utils/validate_stubs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,9 @@ def has_module(path: str, name: str, node: Item, stub: Item):
389389

390390

391391
def find_module(package: Item, module: str):
392-
module = module.split(".")[1:]
392+
modules = module.split(".")[1:]
393393
root = package
394-
for m in module:
394+
for m in modules:
395395
if m not in root.children:
396396
return
397397
root = root.children[m]

0 commit comments

Comments
 (0)