diff --git a/pyproject.toml b/pyproject.toml index 64d991ff..0cffc08b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,13 +125,10 @@ disable_error_code = [ # Not all imports in these stubs are gonna be typed "import-untyped", # TODO - "assert-type", - "assignment", - "attr-defined", - "misc", - "no-redef", - "override", - "return", - "valid-type", - "var-annotated", + "valid-type", # 967 errors in 115 files + "override", # 790 errors in 220 files + "assignment", # 773 errors in 172 files + "misc", # 692 errors in 132 files + "attr-defined", # 202 errors in 75 files + "assert-type", # 6 errors in 1 file ] diff --git a/stubs/matplotlib/ft2font.pyi b/stubs/matplotlib/ft2font.pyi index 29716b42..161adb27 100644 --- a/stubs/matplotlib/ft2font.pyi +++ b/stubs/matplotlib/ft2font.pyi @@ -1,7 +1,6 @@ # Python: 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)] # Library: matplotlib, version: 3.4.0 # Module: matplotlib.ft2font, version: unspecified -import builtins as _mod_builtins import typing BOLD: int @@ -123,11 +122,7 @@ MULTIPLE_MASTERS: int SCALABLE: int SFNT: int VERTICAL: int -__doc__: typing.Any -__file__: str __freetype_build_type__: str __freetype_version__: str -__name__: str -__package__: str def __getattr__(name) -> typing.Any: ... diff --git a/stubs/networkx/classes/ordered.pyi b/stubs/networkx/classes/ordered.pyi index 1c3670c2..ecc0e3ee 100644 --- a/stubs/networkx/classes/ordered.pyi +++ b/stubs/networkx/classes/ordered.pyi @@ -6,7 +6,7 @@ from .graph import Graph from .multidigraph import MultiDiGraph from .multigraph import MultiGraph -__all__ = [] +__all__: list[str] = [] class OrderedGraph(Graph): node_dict_factory = ... diff --git a/stubs/sympy-stubs/core/cache.pyi b/stubs/sympy-stubs/core/cache.pyi index e687de20..f1d44c71 100644 --- a/stubs/sympy-stubs/core/cache.pyi +++ b/stubs/sympy-stubs/core/cache.pyi @@ -15,6 +15,4 @@ SYMPY_CACHE_SIZE = ... def cacheit(func: _CallableT) -> _CallableT: ... def cached_property(func) -> property: ... -def lazy_function(module: str, name: str) -> Callable: - class LazyFunctionMeta(type): ... - class LazyFunction(metaclass=LazyFunctionMeta): ... +def lazy_function(module: str, name: str) -> Callable: ... diff --git a/stubs/vispy/ext/cocoapy.pyi b/stubs/vispy/ext/cocoapy.pyi index 17eb80d6..05867113 100644 --- a/stubs/vispy/ext/cocoapy.pyi +++ b/stubs/vispy/ext/cocoapy.pyi @@ -364,8 +364,6 @@ kCGImageAlphaNoneSkipLast: int = ... kCGImageAlphaNoneSkipFirst: int = ... kCGImageAlphaOnly: int = ... -kCGImageAlphaPremultipliedLast: int = ... - kCGBitmapAlphaInfoMask: int = ... kCGBitmapFloatComponents = ...