Title: Bump mypy from 1.14.1 to 1.15.0 by dependabot[bot] · Pull Request #223 · python-openapi/openapi-schema-validator · GitHub
Open Graph Title: Bump mypy from 1.14.1 to 1.15.0 by dependabot[bot] · Pull Request #223 · python-openapi/openapi-schema-validator
X Title: Bump mypy from 1.14.1 to 1.15.0 by dependabot[bot] · Pull Request #223 · python-openapi/openapi-schema-validator
Description: Bumps mypy from 1.14.1 to 1.15.0.
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next Release
Different Property Getter and Setter Types
Mypy now supports using different types for property getter and setter.
class A:
value: int
@property
def f(self) -> int:
return self.value
@f.setter
def f(self, x: str | int) -> None:
try:
self.value = int(x)
except ValueError:
raise Exception(f"'{x}' is not a valid value for 'f'")
Contributed by Ivan Levkivskyi (PR 18510)
Selectively Disable Deprecated Warnings
It's now possible to selectively disable warnings generated from
warnings.deprecated
using the --deprecated-calls-exclude
option.
# mypy --enable-error-code deprecated
# --deprecated-calls-exclude=foo.A
import foo
foo.A().func() # OK, the deprecated warning is ignored
file foo.py
from typing_extensions import deprecated
class A:
@deprecated("Use A.func2 instead")
def func(self): pass
Contributed by Marc Mueller (PR 18641)
Mypy 1.15
We’ve just uploaded mypy 1.15 to the Python Package Index (PyPI).
... (truncated)
Commits
9397454 remove +dev from version ahead of final release
686b591 remove "unreleased" from 1.15 changelog entry
cb4b243 Various small updates to 1.15 changelog (#18599)
1a26502 Prepare changelog for 1.15 release (#18583)
d4515e4 Fix a few PR links in the changelog (#18586)
f83b643 Add object self-type to tuple test fixture (#18592)
ebc2cb8 Prevent crash on generic NamedTuple with unresolved typevar bound (#18585)
63c251e empty commit to trigger wheel rebuild
c30573e Fix literal context for ternary expressions (for real) (#18545)
23d862d Fix isinstance with explicit (non generic) type alias (#18512)
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.15.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Different Property Getter and Setter Types Mypy now supports using different types f...
X Description: Bumps mypy from 1.14.1 to 1.15.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Different Property Getter and Setter Types Mypy now supports using different typ...
Opengraph URL: https://github.com/python-openapi/openapi-schema-validator/pull/223
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:ccc42709-91ca-b8ce-adb1-a7914d2f2e36 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9AE8:3C92C6:6913660:883AC33:697E316D |
| html-safe-nonce | 017cda9b4d1089853285c87ee3b54d8a34245b3293d6d3eeb2536a0a9f88c028 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUU4OjNDOTJDNjo2OTEzNjYwOjg4M0FDMzM6Njk3RTMxNkQiLCJ2aXNpdG9yX2lkIjoiOTA0Nzc1MzQ4NDQ3NTk2OTkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8ffe7198cee83dd47b52e276d5fae1a635892a239fffe21c841dd7ca3e960eb2 |
| hovercard-subject-tag | pull_request:2414892969 |
| 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/223/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.15.0. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Different Property Getter and Setter Types Mypy now supports using different types f... |
| 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