Updates: * PEP 612: * Add support for ParamSpecs in source files. * Basic support for ParamSpec args and kwargs. * Remove --overriding-return-type-checks (now a no-op).
Bug fixes: * Fix types of Mapping.keys(), values(), items(). * Don't unnecessarily mutate type parameter values to Any. * Add missing methods from collections.abc.MutableSequence.
2023.01.17
Updates: * Default --overriding-return-type-checks to True. * Optimise literal output for class variables as well as constants. * Do some preliminary work for pytype Python 3.11 support.
Bug fixes: * Add missing 3.10 attributes to typing.Counter. * Do not parse default values as types. * Make `ChainMap` accept `MutableMapping`.
2023.01.10
Updates: * Add a new "missing_modules" parameter to load_pytd.create_loader. * Support putting pytype settings in a pyproject.toml file. * Add a performance optimisation for outputting the type of large collections.
Bug fixes: * Add missing int.bit_count method. * Improve pytype's handling of dict.update. * Do better matching of overloads in generic classes. * Show expected type in InterpreterFunction error messages with *args/**kwargs. * Allow 'self' as a keyword argument to str.format.
2022.12.15
Updates: * Remove the --overriding-default-value-checks and --overriding-parameter-name-checks feature flags, which have been no-ops since the last release. * Update typeshed pin to commit 78d96cd from July 12.
2022.12.09
Updates: * PEP 612: Add support for imported ParamSpec and Concatenate instances. * Update typeshed pin to commit 4e0aacc from July 12. * Feature flags: * Remove --mapping-is-not-sequence, which has been a no-op since the last release. * Default --overriding-default-value-checks to True. * Default --overriding-parameter-name-checks to True.
Bug fixes: * Fix a bug in module resolution in load_pytd. * Don't let one TypeVar contain another, and keep invalid TypeVars when possible. * Support calling super() with a subclass of builtins.type. * Fix annotation of *args and **kwargs when constructing a SimpleFunction. * Don't report container errors for late types. * --always-use-return-annotations: handle coroutines. * Add missing attributes to typing.TextIO.
2022.11.29
Updates: * Default --mapping-is-not-sequence to True.
Bug fixes: * Fix incorrect "Any" count in pytd printer for Callable[nothing, X].