#12096: Warn when files are overwritten in the build directory.
Patch by Adam Turner and Bénédikt Tran.
#12620: Ensure that old-style object description options are respected.
Patch by Adam Turner.
#12601, #12625: Support callable objects in :py:class:~typing.Annotated type
metadata in the Python domain.
Patch by Adam Turner.
#12601, #12622: Resolve :py:class:~typing.Annotated warnings with
sphinx.ext.autodoc,
especially when using :mod:dataclasses as type metadata.
Patch by Adam Turner.
#12589, #12626: autosummary: Fix warnings with :rst:role:!autolink.
Patch by Adam Turner.
Release 7.4.6 (released Jul 18, 2024)
Bugs fixed
#12589, #9743, #12609: autosummary: Do not add the package prefix when
generating autosummary directives for modules within a package.
Patch by Adam Turner.
#12613: Reduce log severity for ambiguity detection during inventory loading.
Patch by James Addison.
Release 7.4.5 (released Jul 16, 2024)
Bugs fixed
#12593, #12600: Revert coercing the type of selected :confval:html_sidebars
values to a list.
Log an error message when string values are detected.
Patch by Adam Turner.
#12594: LaTeX: since 7.4.0, :rst:dir:seealso and other "light" admonitions
now break PDF builds if they contain a :dudir:figure directive; and also
if they are contained in a table cell (rendered by tabulary).
Patch by Jean-François B.
We’ve 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:
python3 -m pip install -U mypy
You can read the full documentation for this release on Read the Docs.
Support Python 3.12 Syntax for Generics (PEP 695)
Mypy now supports the new type parameter syntax introduced in Python 3.12 (PEP 695).
This feature is still experimental and must be enabled with the --enable-incomplete-feature=NewGenericSyntax flag, or with enable_incomplete_feature = NewGenericSyntax in the mypy configuration file.
We plan to enable this by default in the next mypy feature release.
This example demonstrates the new syntax:
# Generic function
def f[T](https://github.com/python/mypy/blob/master/x: T) -> T: ...
reveal_type(f(1)) # Revealed type is 'int'
Generic class
class C[T]:
def init(self, x: T) -> None:
self.x = x
c = C('a')
reveal_type(c.x) # Revealed type is 'str'
Type alias
type A[T] = C[list[T]]
This feature was contributed by Jukka Lehtosalo.
Support for functools.partial
Mypy now type checks uses of functools.partial. Previously mypy would accept arbitrary arguments.
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the other group with 7 updates in the / directory:
1.0.2
1.0.3
3.7.1
3.8.0
3.2.5
3.2.6
7.3.7
7.4.7
2024.5.6
2024.7.18
1.10.1
1.11.0
3.16.0
3.17.0
Updates
urlscan
from 1.0.2 to 1.0.3Release notes
Sourced from urlscan's releases.
Commits
56b54dd
fix: clipboard in macos1ec81ec
Housekeeping. Remove accidentally committed conf.py, update flake.lock and tl...0c2fb20
Feature suggestion: Jump directly to next/previous URL (#151)c44184e
Add fallback-version to pyproject.toml0b7dfff
Fix flake python versionUpdates
pre-commit
from 3.7.1 to 3.8.0Release notes
Sourced from pre-commit's releases.
Changelog
Sourced from pre-commit's changelog.
Commits
d46423f
v3.8.08133abd
Merge pull request #3265 from lorenzwalthert/issue-3206da0c1d0
implement health check for language:rf641f6a
Merge pull request #3264 from pre-commit/pre-commit-ci-update-configa68a19d
fixes for mypy 1.1188317dd
[pre-commit.ci] pre-commit autoupdatefaa6f8c
Merge pull request #3244 from pre-commit/pre-commit-ci-update-configf632459
[pre-commit.ci] pre-commit autoupdate0252908
Merge pull request #3240 from pre-commit/pre-commit-ci-update-config69b5dce
[pre-commit.ci] pre-commit autoupdateUpdates
pylint
from 3.2.5 to 3.2.6Commits
da19566
Bump pylint to 3.2.6, update changelog (#9825)810c59c
Update setuptools to >=71.0.4 (#9812) (#9824)5f19cd5
Fix a crash when a subclass extends__slots__
(#9817) (#9822)c0b1d22
Bump astroid to 3.2.4 (#9816) (#9821)1d877de
Fix consider-using-min-max-builtin (#9802) (#9803)8410f57
Fix a false positive formissing-param-doc
(#9740) (#9793)bd4c8f1
Handle assert_never() when imported from typing_extensions (#9782) (#9790)8eb2c4d
Fix FP forunexpected-keyword-arg
with ambiguous constructors (#9785) (#9788)9882537
Bump astroid to 3.2.3 (#9787)aea868c
Fixinvalid-name
regression for class attributes in subclasses (#9772) (#9775)Updates
sphinx
from 7.3.7 to 7.4.7Release notes
Sourced from sphinx's releases.
Changelog
Sourced from sphinx's changelog.
... (truncated)
Commits
0d912c8
Bump to 7.4.7 finalbbc97e0
autosummary: Filter invalid import prefixes inautolink
(#12626)6c486a5
Fix detecting file changes for the overwritten file warning (#12627)2bd973e
autodoc: Fix warnings with dataclasses inAnnotated
metadata (#12622)dd77f85
Support callables inAnnotated
types (#12625)1ed4ca7
Marktest_build_manpage
as XFAIL following changes in Docutils mastercd8ce07
Update message catalogues following reverted commitsc6cd25f
Partially revert "Update message catalogues (#11626)"fa2ba7d
Partially Revert "[bot]: Update message catalogues (#12563)"e439c6f
Ensure that old-style object description options are respected (#12620)Updates
furo
from 2024.5.6 to 2024.7.18Changelog
Sourced from furo's changelog.
... (truncated)
Commits
78e4ba2
Prepare release: 2024.07.186b61424
Update changelog58b532c
Make the issue tracker template more explicit17e351e
Addsource_view_link
to configuration7e51bc7
Delete svg-sun-half (#811)073c497
Move a 'type: ignore' comment, for mypy (#812)cefbdc0
Bump the npm group with 2 updates (#809)7fb7ec8
Bump the npm group with 3 updates (#806)25091fc
[pre-commit.ci] pre-commit autoupdate (#796)550756e
Fix close tag on pencil icon (#807)Updates
mypy
from 1.10.1 to 1.11.0Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
dbd5f5c
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)Updates
pyupgrade
from 3.16.0 to 3.17.0Commits
a25bb53
v3.17.04e28911
Merge pull request #948 from asottile/pep-696d17f461
run pyupgrade on itselfcc45199
rewrite TypeVar defaults for Generator / AsyncGeneratorbc45bf1
Merge pull request #955 from asottile/pre-commit-ci-update-config459acce
hack around python/mypy#17566d2bf447
[pre-commit.ci] pre-commit autoupdatea7a9e1b
Merge pull request #953 from asottile/pre-commit-ci-update-configca56d62
[pre-commit.ci] pre-commit autoupdatef17a8c7
Merge pull request #951 from asottile/pre-commit-ci-update-configDependabot 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