{"time": "2024-10-14T15:44:56+00:00", "type": "commit", "payload": {"sha": "48d05296a8830c8e912c3e34f4f1f46d94f32c02", "node_id": "C_kwDOKNhT9doAKDQ4ZDA1Mjk2YTg4MzBjOGU5MTJjM2UzNGY0ZjFmNDZkOTRmMzJjMDI", "commit": {"author": {"name": "dependabot[bot]", "email": "49699333+dependabot[bot]@users.noreply.github.com", "date": "2024-10-14T15:44:56Z"}, "committer": {"name": "GitHub", "email": "noreply@github.com", "date": "2024-10-14T15:44:56Z"}, "message": "chore(deps): update mypy requirement from ==1.11.* to ==1.12.*\n\nUpdates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.\n- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)\n- [Commits](https://github.com/python/mypy/compare/v1.11...v1.12.0)\n\n---\nupdated-dependencies:\n- dependency-name: mypy\n dependency-type: direct:production\n...\n\nSigned-off-by: dependabot[bot] Sourced from mypy's changelog. We\u2019ve just uploaded mypy 1.12 to the Python Package Index (PyPI). Mypy is a static type\nchecker for Python. This release includes new features, performance improvements and bug fixes.\nYou can install it as follows: You can read the full documentation for this release on Read the Docs. Support for the new type parameter syntax introduced in Python 3.12 is now enabled by default,\ndocumented, and no longer experimental. It was available through a feature flag in\nmypy 1.11 as an experimental feature. This example demonstrates the new syntax: reveal_type(f(1)) # Revealed type is 'int' class C[T]:\ndef init(self, x: T) -> None:\nself.x = x c = C('a')\nreveal_type(c.x) # Revealed type is 'str' type A[T] = C[list[T]]\nChangelog
\n\n
Mypy Release Notes
\nNext release
\nMypy 1.12
\n
\npython3 -m pip install -U mypy\nSupport Python 3.12 Syntax for Generics (PEP 695)
\n# Generic function\ndef f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...\nGeneric class
\nType alias
\n
For more information, refer to the documentation.
\nThese improvements are included:
\n... (truncated)
\n\nf2a39b1 Update version to 1.12.0b4ec37a Add one more 1.12 changelog item (#17936)cc1c679 Better handling of generic functions in partial plugin (#17925)d65a013 Add latest 1.12 changes to changelog (#17921)2e38965 Fix union callees with functools.partial (#17903)c5d3673 Document ReadOnly (PEP 705) (#17905)964a7a5 Make ReadOnly TypedDict items covariant (#17904)24bfb34 Include CHANGELOG.md in sdists (#17882)21d46ed documentation for TypeIs (#17821)c692943 Improvements to functools.partial of types (#17898)