Title: 1.7.0 Broken explicit-override for pydantic 1.10 · Issue #16548 · python/mypy · GitHub
Open Graph Title: 1.7.0 Broken explicit-override for pydantic 1.10 · Issue #16548 · python/mypy
X Title: 1.7.0 Broken explicit-override for pydantic 1.10 · Issue #16548 · python/mypy
Description: Bug Report After updating mypy from 1.6.1 to 1.7.0 I faced the issue with explicit-override option for pydantic models To Reproduce example.py from pydantic import BaseModel class M(BaseModel): a: int Expected Behavior No errors Actual B...
Open Graph Description: Bug Report After updating mypy from 1.6.1 to 1.7.0 I faced the issue with explicit-override option for pydantic models To Reproduce example.py from pydantic import BaseModel class M(BaseModel): a: ...
X Description: Bug Report After updating mypy from 1.6.1 to 1.7.0 I faced the issue with explicit-override option for pydantic models To Reproduce example.py from pydantic import BaseModel class M(BaseModel): a: ...
Opengraph URL: https://github.com/python/mypy/issues/16548
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"1.7.0 Broken explicit-override for pydantic 1.10","articleBody":"**Bug Report**\r\n\r\nAfter updating mypy from 1.6.1 to 1.7.0 I faced the issue with `explicit-override` option for pydantic models\r\n\r\n**To Reproduce**\r\n`example.py`\r\n```python\r\nfrom pydantic import BaseModel\r\n\r\nclass M(BaseModel):\r\n a: int\r\n```\r\n\r\n**Expected Behavior**\r\n\r\nNo errors\r\n\r\n**Actual Behavior**\r\n`mypy --enable-error-code explicit-override example.py`\r\n\r\n`error: Method \"__mypy-replace\" is not using @override but is overriding a method in class \"pydantic.main.BaseModel\" [explicit-override]`\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 1.7.0\r\n- Pydantic version used: 1.10.13\r\n- Mypy command-line flags: --enable-error-code explicit-override\r\n- Python version used: 3.11\r\n\r\n\u003c!-- You can freely edit this text, please remove all the lines you believe are unnecessary. -->\r\n","author":{"url":"https://github.com/zoola969","@type":"Person","name":"zoola969"},"datePublished":"2023-11-23T13:05:47Z","url":"https://github.com/python/mypy/issues/16548"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:85e47fc1-c2b4-c7af-bf10-1a6df57dd8f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBF6:BACA4:2831F9F:34CDBA5:6B000A7F |
| html-safe-nonce | 21e3b070c3061e7cb199cd1cffeb91646e4ca0f49015ccb1c26abc402e904371 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkY2OkJBQ0E0OjI4MzFGOUY6MzRDREJBNTo2QjAwMEE3RiIsInZpc2l0b3JfaWQiOiI2MTQ4NzIwNzM5NDY2ODczNDcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 78d1638f9fe8730c4d5451d72771155c64da5a991a92fc79365a5f40461a6d19 |
| hovercard-subject-tag | issue:2008199592 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/mypy/16548/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71da6cdc66005cbd8b9508e5627c85f24cb5f93c7e3660f20b792c2d8a9e9023/python/mypy/issues/16548 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71da6cdc66005cbd8b9508e5627c85f24cb5f93c7e3660f20b792c2d8a9e9023/python/mypy/issues/16548 |
| og:image:alt | Bug Report After updating mypy from 1.6.1 to 1.7.0 I faced the issue with explicit-override option for pydantic models To Reproduce example.py from pydantic import BaseModel class M(BaseModel): a: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zoola969 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width