{"time": "2024-07-22T15:12:23+00:00", "type": "pr", "payload": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/133", "id": 1981476002, "node_id": "PR_kwDOKNhT9c52Guyi", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/133", "diff_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/133.diff", "patch_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/133.patch", "issue_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/133", "number": 133, "state": "closed", "locked": false, "title": "chore(deps): update mypy requirement from ==1.10.* to ==1.11.*", "user": {"login": "dependabot[bot]", "id": 49699333, "node_id": "MDM6Qm90NDk2OTkzMzM=", "avatar_url": "https://avatars.githubusercontent.com/in/29110?v=4", "gravatar_id": "", "url": "https://api.github.com/users/dependabot%5Bbot%5D", "html_url": "https://github.com/apps/dependabot", "followers_url": "https://api.github.com/users/dependabot%5Bbot%5D/followers", "following_url": "https://api.github.com/users/dependabot%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/dependabot%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/dependabot%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dependabot%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/dependabot%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/dependabot%5Bbot%5D/repos", "events_url": "https://api.github.com/users/dependabot%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/dependabot%5Bbot%5D/received_events", "type": "Bot", "user_view_type": "public", "site_admin": false}, "body": "Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.\n Sourced from mypy's changelog. We\u2019ve just uploaded mypy 1.11 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows: You can read the full documentation for this release on Read the Docs. Mypy now supports the new type parameter syntax introduced in Python 3.12 (PEP 695).\nThis feature is still experimental and must be enabled with the 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.11
\n
\npython3 -m pip install -U mypy\nSupport Python 3.12 Syntax for Generics (PEP 695)
\n--enable-incomplete-feature=NewGenericSyntax flag, or with enable_incomplete_feature = NewGenericSyntax in the mypy configuration file.\nWe plan to enable this by default in the next mypy feature release.# Generic function\ndef f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...\nGeneric class
\nType alias
\n
This feature was contributed by Jukka Lehtosalo.
\nfunctools.partialMypy now type checks uses of functools.partial. Previously mypy would accept arbitrary arguments.
This example will now produce an error:
\nfrom functools import partial\n</tr></table> \n\n\n... (truncated)
\n\ndbd5f5c Remove +dev from version for 1.11 releasef0a8c69 Update CHANGELOG for mypy 1.11 (#17540)371f780 CHANGELOG.md update for 1.11 (#17539)2563da0 Fix daemon crash on invalid type in TypedDict (#17495)d8c67c3 [release 1.11] Ignore some errors in typeshed (#17510)294daff Mention --enable-incomplete-feature=NewGenericSyntax (#17462)5c33abf Further improvements to functools.partial handling (#17425)c37d972 Fix type comments crash inside generic definitions (#16849)d39f023 Add changelog entry for 1.10.1 (#17436)6c1d867 Fix ParamSpec inference against TypeVarTuple (#17431)