-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed the NoneType
which has historically been used to track `Non…
#6259
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…e` and `type[None]` within pyright's logic. The new logic now models `None` like any other class and simply uses `ClassType` to track values of this type. This eliminates a bunch of special-case logic and edge-case bugs.
Diff from mypy_primer, showing the effect of this PR on open source code: alectryon (https://github.com/cpitclaudel/alectryon)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
bidict (https://github.com/jab/bidict)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "ref" is incompatible with "None" (reportGeneralTypeIssues)
spack (https://github.com/spack/spack)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "bool" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "bool" is incompatible with "None" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ModuleSpec" (reportGeneralTypeIssues)
+ "None" is incompatible with "ModuleSpec" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "bool"
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "None" is incompatible with "bool"
+ "function" is incompatible with "None" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "bool" (reportGeneralTypeIssues)
+ "None" is incompatible with "bool" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "bool" (reportGeneralTypeIssues)
+ "None" is incompatible with "bool" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterable[Unknown]"
- "__iter__" is not present (reportGeneralTypeIssues)
+ "__iter__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterable[str]"
- "__iter__" is not present (reportGeneralTypeIssues)
+ "__iter__" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ArchSpec" (reportGeneralTypeIssues)
+ "None" is incompatible with "ArchSpec" (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/spack/lib/spack/spack/binary_distribution.py:191:69 - error: "None" is not iterable (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/spack/lib/spack/spack/binary_distribution.py:191:69 - error: "None" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
- /tmp/mypy_primer/projects/spack/lib/spack/spack/binary_distribution.py:507:69 - error: "None" is not iterable (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/spack/lib/spack/spack/binary_distribution.py:507:69 - error: "None" is not iterable
+ "__iter__" method not defined (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "_ReadableStream"
- "read" is not present
+ "read" is not present
- "seek" is not present
+ "seek" is not present
- "close" is not present (reportGeneralTypeIssues)
+ "close" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "_ReadableStream"
- "read" is not present
+ "read" is not present
- "seek" is not present
+ "seek" is not present
- "close" is not present (reportGeneralTypeIssues)
+ "close" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "_ReadableStream"
- "read" is not present
+ "read" is not present
- "seek" is not present
+ "seek" is not present
- "close" is not present (reportGeneralTypeIssues)
+ "close" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Path" (reportGeneralTypeIssues)
+ "None" is incompatible with "Path" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Path" (reportGeneralTypeIssues)
+ "None" is incompatible with "Path" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "_ReadableStream"
- "read" is not present
+ "read" is not present
- "seek" is not present
+ "seek" is not present
- "close" is not present (reportGeneralTypeIssues)
+ "close" is not present (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "ConfigScope" is incompatible with "None" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "bool"
- Type cannot be assigned to type "None"
+ "None" is incompatible with "bool"
+ "function" is incompatible with "None"
- Type "None" cannot be assigned to type "bool"
- Type cannot be assigned to type "None"
+ "None" is incompatible with "bool"
+ "function" is incompatible with "None"
- Type "None" cannot be assigned to type "bool"
- Type cannot be assigned to type "None"
+ "None" is incompatible with "bool"
+ "function" is incompatible with "None"
+ "None" is incompatible with protocol "Iterable[Spec]"
- "__iter__" is not present (reportGeneralTypeIssues)
+ "__iter__" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "bool"
- Type cannot be assigned to type "None"
+ "None" is incompatible with "bool"
+ "function" is incompatible with "None"
- Type "None" cannot be assigned to type "bool"
- Type cannot be assigned to type "None"
+ "None" is incompatible with "bool"
+ "function" is incompatible with "None"
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "bool" (reportGeneralTypeIssues)
+ "None" is incompatible with "bool" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "BaseException" (reportGeneralTypeIssues)
+ "None" is incompatible with "BaseException" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "SupportsRead[AnyStr@copyfileobj]"
- "read" is not present (reportGeneralTypeIssues)
+ "read" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "SupportsRead[AnyStr@copyfileobj]"
- "read" is not present (reportGeneralTypeIssues)
+ "read" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "SupportsRead[AnyStr@copyfileobj]"
- "read" is not present (reportGeneralTypeIssues)
+ "read" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "SupportsIndex"
- "__index__" is not present (reportGeneralTypeIssues)
+ "__index__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Sized"
- "__len__" is not present (reportGeneralTypeIssues)
+ "__len__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Sized"
- "__len__" is not present (reportGeneralTypeIssues)
+ "__len__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Sized"
- "__len__" is not present (reportGeneralTypeIssues)
+ "__len__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Sized"
- "__len__" is not present (reportGeneralTypeIssues)
+ "__len__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Sized"
- "__len__" is not present (reportGeneralTypeIssues)
+ "__len__" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "CompilerSpec" (reportGeneralTypeIssues)
+ "None" is incompatible with "CompilerSpec" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "CompilerSpec" (reportGeneralTypeIssues)
+ "None" is incompatible with "CompilerSpec" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "CompilerSpec" (reportGeneralTypeIssues)
+ "None" is incompatible with "CompilerSpec" (reportGeneralTypeIssues)
... (truncated 407 lines) ...
operator (https://github.com/canonical/operator)
+ /tmp/mypy_primer/projects/operator/test/test_main.py
+ /tmp/mypy_primer/projects/operator/test/test_main.py:369:42 - error: Cannot access member "_data" for type "StoredState"
+ Member "_data" is unknown (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/operator/test/test_main.py:369:35 - error: Type of "_data" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/operator/test/test_main.py:369:35 - error: Type of "handle" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/operator/test/test_main.py:369:35 - error: Type of "path" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/operator/test/test_main.py:369:35 - error: Argument type is unknown
+ Argument corresponds to parameter "handle_path" in function "save_snapshot" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/operator/test/test_main.py:374:16 - error: Expression of type "StoredState | StoredStateData" cannot be assigned to return type "BoundStoredState | StoredStateData" (reportGeneralTypeIssues)
- 56 errors, 0 warnings, 0 informations
+ 62 errors, 0 warnings, 0 informations
pydantic (https://github.com/samuelcolvin/pydantic)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "ellipsis" is incompatible with "None" (reportGeneralTypeIssues)
freqtrade (https://github.com/freqtrade/freqtrade)
- Type "None" cannot be assigned to type "float" (reportGeneralTypeIssues)
+ "None" is incompatible with "float" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "float" (reportGeneralTypeIssues)
+ "None" is incompatible with "float" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "float" (reportGeneralTypeIssues)
+ "None" is incompatible with "float" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "float" (reportGeneralTypeIssues)
+ "None" is incompatible with "float" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Path" (reportGeneralTypeIssues)
+ "None" is incompatible with "Path" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "float" (reportGeneralTypeIssues)
+ "None" is incompatible with "float" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterator[_T_co@contextmanager]"
- "__next__" is not present
+ "__next__" is not present
- "__iter__" is not present (reportGeneralTypeIssues)
+ "__iter__" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "RPC" (reportGeneralTypeIssues)
+ "None" is incompatible with "RPC" (reportGeneralTypeIssues)
Tanjun (https://github.com/FasterSpeeding/Tanjun)
- Type "None" cannot be assigned to type "Coroutine[Any, Any, None]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Coroutine[Any, Any, None]" (reportGeneralTypeIssues)
koda-validate (https://github.com/keithasaurus/koda-validate)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "Coercer[A@coercer]" is incompatible with "None" (reportGeneralTypeIssues)
pyp (https://github.com/hauntsaninja/pyp)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "bytes" is incompatible with "None" (reportGeneralTypeIssues)
discord.py (https://github.com/Rapptz/discord.py)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
pandera (https://github.com/pandera-dev/pandera)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "DataFrameSchema"
- Type "None" cannot be assigned to type "SeriesSchema"
- Type "None" cannot be assigned to type "Tuple[OutputGetter, Schemas]"
+ "None" is incompatible with "DataFrameSchema"
+ "None" is incompatible with "SeriesSchema"
+ "None" is incompatible with "Tuple[OutputGetter, Schemas]"
- Type "None" cannot be assigned to type "List[Tuple[OutputGetter, Schemas]]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[Tuple[OutputGetter, Schemas]]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "BaseException" (reportGeneralTypeIssues)
+ "None" is incompatible with "BaseException" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "BaseException" (reportGeneralTypeIssues)
+ "None" is incompatible with "BaseException" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[str, Any]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[Unknown, Unknown]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[Unknown, Unknown]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[Unknown, Unknown]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[Unknown, Unknown]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[str, Any]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[str, Any]" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "function" is incompatible with "None" (reportGeneralTypeIssues)
- Type "None*" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None*" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "List[str]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[str]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str"
+ "None" is incompatible with "str"
- Type "None" cannot be assigned to type "Path" (reportGeneralTypeIssues)
+ "None" is incompatible with "Path" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "DataFrameSchema" (reportGeneralTypeIssues)
+ "None" is incompatible with "DataFrameSchema" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterable[Unknown]"
- "__iter__" is not present (reportGeneralTypeIssues)
+ "__iter__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterable[Unknown]"
- "__iter__" is not present (reportGeneralTypeIssues)
+ "__iter__" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Check"
+ "None" is incompatible with "Check"
- Type "None" cannot be assigned to type "List[Check]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[Check]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Check"
+ "None" is incompatible with "Check"
- Type "None" cannot be assigned to type "List[Check]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[Check]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Check"
+ "None" is incompatible with "Check"
- Type "None" cannot be assigned to type "List[Check]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[Check]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ErrorHandler" (reportGeneralTypeIssues)
+ "None" is incompatible with "ErrorHandler" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ErrorHandler" (reportGeneralTypeIssues)
+ "None" is incompatible with "ErrorHandler" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ErrorHandler" (reportGeneralTypeIssues)
+ "None" is incompatible with "ErrorHandler" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str"
+ "None" is incompatible with "str"
- Type "None" cannot be assigned to type "Path" (reportGeneralTypeIssues)
+ "None" is incompatible with "Path" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "DataFrameSchema" (reportGeneralTypeIssues)
+ "None" is incompatible with "DataFrameSchema" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "BaseException" (reportGeneralTypeIssues)
+ "None" is incompatible with "BaseException" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with "Dict[str, Any]" (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterable[Unknown]"
- "__iter__" is not present (reportGeneralTypeIssues)
+ "None" is incompatible with protocol "Iterable[Unknown]"
- "__iter__" is not present (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Check"
+ "None" is incompatible with "Check"
- Type "None" cannot be assigned to type "List[Check]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[Check]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
+ "None" is incompatible with "str" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "Check"
+ "None" is incompatible with "Check"
- Type "None" cannot be assigned to type "List[Check]" (reportGeneralTypeIssues)
+ "None" is incompatible with "List[Check]" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
+ "None" is incompatible with "int" (reportGeneralTypeIssues)
- Type cannot be assigned to type "None" (reportGeneralTypeIssues)
+ "str" is incompatible with "None" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ErrorHandler" (reportGeneralTypeIssues)
+ "None" is incompatible with "ErrorHandler" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "SchemaErrorReason" (reportGeneralTypeIssues)
+ "None" is incompatible with "SchemaErrorReason" (reportGeneralTypeIssues)
- Type "None" cannot be assigned to type "ErrorHandler" (reportGeneralTypeIssues)
+ "None" is incompatible with "ErrorHandler" (reportGeneralTypeIssues)
... (truncated 155 lines) ...``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…e
and
type[None]within pyright's logic. The new logic now models
Nonelike any other class and simply uses
ClassType` to track values of this type. This eliminates a bunch of special-case logic and edge-case bugs.