Skip to content
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

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

erictraut
Copy link
Collaborator

…eandtype[None]within pyright's logic. The new logic now modelsNonelike any other class and simply usesClassType` to track values of this type. This eliminates a bunch of special-case logic and edge-case bugs.

…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.
@github-actions
Copy link
Contributor

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) ...```

@erictraut erictraut merged commit 05fa7d0 into main Oct 29, 2023
12 checks passed
@erictraut erictraut deleted the nonePart4 branch October 29, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant