New features and updates: * Add basic Python 3.9 support.
Bug fixes: * Fully support method aliasing in stub files. * Improve pytype's handling of sets.
2021.03.22
New features and updates: * Support inheritance from dataclasses defined in pyi files.
Bug fixes: * Don't check attribute values against types from pyi files. * Add a missing array.array.frombytes method. * Fix the pyi type of attributes annotated with class type parameters. * Allow annotation-type-mismatch directives to be put on more sensible lines. * Pass ninja relative paths instead of absolute ones.
2021.03.10
New features and updates: * Basic support for defining dataclasses in pyi files. * Enable more of --check-attribute-types by default. * Get rid of the legacy pyi parser.
Bug fixes: * Fix a circular import error (760). * Make NotImplementedType inherit from bool. * Fix a caching bug that caused incorrect function parameter defaults.
2021.03.03
New features and updates: * Enable part of --check-attribute-types by default.
Bug fixes: * Allow callable constants to match protocol methods. * Allow builtins.tuple to be used for a heterogeneous tuple annotation. * Don't report [not-instantiable] when instantiating an abstract annotation. * Take a TypeVar's bound into account when instantiating it in attribute.py. * Use typeshed stubs in preference to empty stubs. * Fix a bug where multiple definitions of a TypeVar could end up in a stub. * Fix a caching bug in check_container_types. * Fix initialization of Union types in forward references.
2021.02.23
New features and updates: * Support running pytype under Python 3.9. (Does not yet support analyzing 3.9 code; see details in https://github.com/google/pytype/pull/840.) * Update typeshed pin to commit 869238e from Jan 26.
Bug fixes: * Do stricter filtering of container_type_mismatch errors. * Preserve the concrete value of TYPE_CHECKING in method bodies. * Support using collections.abc.Callable in type stubs.
2021.02.19
Bug fixes: * Fix 'nothing' parameter inference for self in custom generic classes. * Fix several cases of class type parameters being instantiated incorrectly. * Fix an if-splitting bug by (mostly) ignoring cycles in the CFG. * Use match_var_against_type, not match_from_mro, for check_container_types.