sqlalchemy-file
sqlalchemy-file copied to clipboard
Bump mypy from 1.5.1 to 1.8.0
Bumps mypy from 1.5.1 to 1.8.0.
Changelog
Sourced from mypy's changelog.
Mypy Release Notes
Next release
Mypy 1.8
We’ve just uploaded mypy 1.8 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:
python3 -m pip install -U mypyYou can read the full documentation for this release on Read the Docs.
Type-checking Improvements
- Do not intersect types in isinstance checks if at least one is final (Christoph Tyralla, PR 16330)
- Detect that
@finalclass without__bool__cannot have falsey instances (Ilya Priven, PR 16566)- Do not allow
TypedDictclasses with extra keywords (Nikita Sobolev, PR 16438)- Do not allow class-level keywords for
NamedTuple(Nikita Sobolev, PR 16526)- Make imprecise constraints handling more robust (Ivan Levkivskyi, PR 16502)
- Fix strict-optional in extending generic TypedDict (Ivan Levkivskyi, PR 16398)
- Allow type ignores of PEP 695 constructs (Shantanu, PR 16608)
- Enable
type_check_onlysupport forTypedDictandNamedTuple(Nikita Sobolev, PR 16469)Performance Improvements
- Add fast path to analyzing special form assignments (Jukka Lehtosalo, PR 16561)
Improvements to Error Reporting
- Don't show documentation links for plugin error codes (Ivan Levkivskyi, PR 16383)
- Improve error messages for
superchecks and add more tests (Nikita Sobolev, PR 16393)- Add error code for mutable covariant override (Ivan Levkivskyi, PR 16399)
Stubgen Improvements
- Preserve simple defaults in function signatures (Ali Hamdan, PR 15355)
- Include
__all__in output (Jelle Zijlstra, PR 16356)- Fix stubgen regressions with pybind11 and mypy 1.7 (Chad Dombrova, PR 16504)
Stubtest Improvements
- Improve handling of unrepresentable defaults (Jelle Zijlstra, PR 16433)
- Print more helpful errors if a function is missing from stub (Alex Waygood, PR 16517)
- Support
@type_check_onlydecorator (Nikita Sobolev, PR 16422)- Warn about missing
__del__(Shantanu, PR 16456)- Fix crashes with some uses of
finalanddeprecated(Shantanu, PR 16457)Fixes to Crashes
- Fix crash with type alias to
Callable[[Unpack[Tuple[Any, ...]]], Any](Alex Waygood, PR 16541)- Fix crash on TypeGuard in
__call__(Ivan Levkivskyi, PR 16516)- Fix crash on invalid enum in method (Ivan Levkivskyi, PR 16511)
- Fix crash on unimported Any in TypedDict (Ivan Levkivskyi, PR 16510)
Documentation Updates
- Update soft-error-limit default value to -1 (Sveinung Gundersen, PR 16542)
... (truncated)
Commits
3b46750remove +dev suffix from versionc9bc833Fix tests broken by hatchling (#16655)60d30e3Fix crash with type alias toCallable[[Unpack[Tuple[Any, ...]]], Any](#16541)f53f422Allow type ignores of PEP 695 constructs (#16608)7c33e7c@finalclass without bool cannot have falsey instances (#16566)c224da5Do not intersect types in isinstance checks if at least one is final (#16330)d54cc35Change example in test cases with no stubs available (#16513)eb1ee97Update hashes insync-typeshed.pyfollowing recent typeshed sync (#16600)344298eRevert use ofParamSpecforfunctools.wraps3e5d813Revert typeshed ctypes change- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
fc91c90) 100.00% compared to head (999d896) 100.00%. Report is 1 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #138 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 27 27
Lines 1882 1883 +1
=========================================
+ Hits 1882 1883 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.