Bug Fix: Fixed false negative for "reportUnknownParameterType" diagnostic rule when all function parameters were unannotated.
Bug Fix: Fixed a couple of issues with TypeGuard. Previously, TypeGuard
was implemented as an alias to bool
which meant that bool
was assignable to TypeGuard
in all circumstances. Now it is special-cased to be assignable only in return statements.
Bug Fix: Fixed bug that caused definition provider to not fully resolve a submodule symbol in certain cases.
Enhancement: Added support for aliases of imported module "sys" when evaluating "sys.platform" and "sys.version".
Behavior Change: Suppressed "Covariant type variable cannot be used in parameter type" diagnostic in the case of an "init" method to match mypy behavior.
Bug Fix: Fixed regression that broke type inference for packages with no "py.typed" file and no stubs when "useLibraryCodeForTypes" was enabled.