Title: Bump mypy from 1.14.1 to 1.16.0 by dependabot[bot] · Pull Request #225 · python-openapi/openapi-schema-validator · GitHub
Open Graph Title: Bump mypy from 1.14.1 to 1.16.0 by dependabot[bot] · Pull Request #225 · python-openapi/openapi-schema-validator
X Title: Bump mypy from 1.14.1 to 1.16.0 by dependabot[bot] · Pull Request #225 · python-openapi/openapi-schema-validator
Description: Bumps mypy from 1.14.1 to 1.16.0.
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next Release
Mypy 1.16
We’ve just uploaded mypy 1.16 to the Python Package Index (PyPI).
Mypy is a static type checker for Python. This release includes new features and bug fixes.
You can install it as follows:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Different Property Getter and Setter Types
Mypy now supports using different types for a property getter and setter:
class A:
_value: int
@property
def foo(self) -> int:
return self._value
@foo.setter
def foo(self, x: str | int) -> None:
try:
self._value = int(x)
except ValueError:
raise Exception(f"'{x}' is not a valid value for 'foo'")
This was contributed by Ivan Levkivskyi (PR 18510).
Flexible Variable Redefinitions (Experimental)
Mypy now allows unannotated variables to be freely redefined with
different types when using the experimental --allow-redefinition-new
flag. You will also need to enable --local-partial-types. Mypy will
now infer a union type when different types are assigned to a
variable:
# mypy: allow-redefinition-new, local-partial-types
def f(n: int, b: bool) -> int | str:
if b:
x = n
else:
... (truncated)
Commits
9e72e96 Update version to 1.16.0
8fe719f Add changelog for 1.16 (#19138)
2a036e7 Revert "Infer correct types with overloads of Type[Guard | Is] (#19161)
b6da4fc Allow enum members to have type objects as values (#19160)
334469f [mypyc] Improve documentation of native and non-native classes (#19154)
a499d9f Document --allow-redefinition-new (#19153)
96525a2 Merge commit '9e45dadcf6d8dbab36f83d9df94a706c0b4f9207' into release-1.16
9e45dad Clear more data in TypeChecker.reset() instead of asserting (#19087)
772cd0c Add --strict-bytes to --strict (#19049)
0b65f21 Admit that Final variables are never redefined (#19083)
Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show
Open Graph Description: Bumps mypy from 1.14.1 to 1.16.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Mypy 1.16 We’ve just uploaded mypy 1.16 to the Python Package Index (PyPI). Mypy is ...
X Description: Bumps mypy from 1.14.1 to 1.16.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Mypy 1.16 We’ve just uploaded mypy 1.16 to the Python Package Index (PyPI). Mypy...
Opengraph URL: https://github.com/python-openapi/openapi-schema-validator/pull/225
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:8a26ed2f-ff12-5c07-477d-b7356a39db17 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | EDAC:2BC593:3C968B2:4F0D7CE:697D9938 |
| html-safe-nonce | 25e1f692332c5561c7df1e43e88591c25b4aa281c8e3a9f0f4c93e60ed15a3f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREFDOjJCQzU5MzozQzk2OEIyOjRGMEQ3Q0U6Njk3RDk5MzgiLCJ2aXNpdG9yX2lkIjoiMjU5NDE3MDc0MTE1ODk0MzAzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9c29c2f2735d2b1c962e08c81ef7fc3f74ac798f048f005642031646457412c2 |
| hovercard-subject-tag | pull_request:2561877692 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-openapi/openapi-schema-validator/pull/225/checks |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps mypy from 1.14.1 to 1.16.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Mypy 1.16 We’ve just uploaded mypy 1.16 to the Python Package Index (PyPI). Mypy is ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openapi/openapi-schema-validator git https://github.com/python-openapi/openapi-schema-validator.git |
| octolytics-dimension-user_id | 126442889 |
| octolytics-dimension-user_login | python-openapi |
| octolytics-dimension-repository_id | 245119225 |
| octolytics-dimension-repository_nwo | python-openapi/openapi-schema-validator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 245119225 |
| octolytics-dimension-repository_network_root_nwo | python-openapi/openapi-schema-validator |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width