Fix: nested context managers could incorrectly be analyzed to flag a missing
branch on the last context manager, as described in issue 1876_. This is
now fixed.
Fix: the missing branch message about not exiting a module had an extra
"didn't," as described in issue 1873_. This is now fixed.
Added: complete test framework, using pytest and Mkdocs-Test (#244)
A number of automated test cases are implemented.
Changed: move from setup.py to pyproject.toml (#250)
1.2.0, 2024-09-15
Added: three hooks register_variables/macros/filters to facilitate
cooperation with other MkDocs plugins.
Fixed: `define_env() was always required in module (#191)
Added: trace the case when no module is found (INFO)
Improved documentation, particularly about HTML pages
Added: parameters j2_comment_start_string and
j2_comment_end_string to plugin's parameters,
to specify alternate markers for comments.
Added the multiline parameter force_render_paths in the config file,
to specify directories or file patterns to be rendered for the case when render_by_default = false
(the render_macros parameter in the YAML header of the page
has the last word).
Fixed: Warning due to filter issue with mkdocs >= 1.5
Fixed: Debug html tables (including for macro_info()) are
now readable also in dark mode.
1.0.2, 2023-07-02
Added: it is now possible to use macros in page titles, in the
nav section of the yaml file, or in the level 1 titles;
the macros are correctly interpreted in the navigation part
of the page.
1.0.1, 2023-05-25
1.0.0-alpha, 2023-04-23
Improved user guide, with introduction of two new pages:
"Controlling macro rendering" and "Post production".
Fixed: (#158) In modules, on_pre_page_macros(), the env.markdown
attribute is now available to create a header or footer.
Changed: In on_post_page_macros() use env.markdown instead of
env.raw_markdown, for the same purpose.
Fix crash when showing partially analyzed type in error message (Ivan Levkivskyi, PR 17961)
Fix iteration over union (when self type is involved) (Shantanu, PR 17976)
Fix type object with type var default in union context (Jukka Lehtosalo, PR 17991)
Revert change to os.path stubs affecting use of os.PathLike[Any] (Shantanu, PR 17995)
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
Ali Hamdan
Anders Kaseorg
Bénédikt Tran
Brian Schubert
bzoracler
Chelsea Durazo
Danny Yang
Edgar Ramírez Mondragón
Eric Mark Martin
InSync
Ivan Levkivskyi
Jordandev678
Katrina Connors
Kirill Podoprigora
Marc Mueller
Max Muoto
Max Murin
Michael Carlstrom
Michael I Chen
Pradyun Gedam
quinn-sasha
Raphael Krupinski
Sebastian Rittau
Shantanu
sobolevn
Soubhik Kumar Mitra
Stanislav Terliakov
wyattscarpenter
I’d also like to thank my employer, Dropbox, for supporting mypy development.
Mypy 1.11
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.
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
The pytest rules PT001 and PT023 now default to omitting the decorator parentheses when there are no arguments
(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
The useless-try-except rule (in our tryceratops category) has been recoded from TRY302 to
TRY203 (#13502). This ensures Ruff's code is consistent with
the same rule in the tryceratops linter.
[flake8-simplify] Stabilize preview behavior for SIM115 so that the rule can detect files
being opened from a wider range of standard-library functions (#12959).
CLI
Add explanation of fixable in --statistics command (#13774)
Check out the blog post for a migration guide and overview of the changes!
Breaking changes
The pytest rules PT001 and PT023 now default to omitting the decorator parentheses when there are no arguments
(#12838, #13292).
This was a change that we attempted to make in Ruff v0.6.0, but only partially made due to an error on our part.
See the blog post for more details.
The useless-try-except rule (in our tryceratops category) has been recoded from TRY302 to
TRY203 (#13502). This ensures Ruff's code is consistent with
the same rule in the tryceratops linter.
[flake8-simplify] Stabilize preview behavior for SIM115 so that the rule can detect files
being opened from a wider range of standard-library functions (#12959).
CLI
Add explanation of fixable in --statistics command (#13774)
Bumps the dependencies group in /.config with 12 updates:
7.6.2
7.6.3
43.0.1
43.0.3
1.4.1
1.5.1
3.0.1
3.0.2
1.3.5
1.3.6
9.5.40
9.5.41
1.12.0
1.12.2
1.11.2
1.12.1
10.4.0
11.0.0
0.6.9
0.7.0
4.21.2
4.23.0
20.26.6
20.27.0
Updates
coverage
from 7.6.2 to 7.6.3Changelog
Sourced from coverage's changelog.
Commits
342a4cb
docs: sample HTML for 7.6.3df03796
docs: prep for 7.6.3378c321
fix: nested context managers shouldn't cause a phantom missing branch #1876c8902ed
build: pypy 3.9 doesn't seem to be available nightlyc59a77b
docs(build): put a header on the GitHub releases65ac395
docs: fix a link in the changes2d3e72c
docs: add coverage-simple-excludes to the docs474a363
fix: didn't-ectomy. #18735229fc3
docs: mention 1852 is fixed6a4506f
build(docs): upgrade doc dependenciesUpdates
cryptography
from 43.0.1 to 43.0.3Changelog
Sourced from cryptography's changelog.
Commits
c2afb4f
Backport metadata fix for vectors (#11797)9a3cdb5
43.0.2 release: fix libressl 4.0.0 (#11796)Updates
griffe
from 1.4.1 to 1.5.1Release notes
Sourced from griffe's releases.
Changelog
Sourced from griffe's changelog.
Commits
4ef4649
chore: Prepare release 1.5.13bfa401
fix: Sort Git tags usingcreatordate
field, which works with both lightweig...65e3cdb
chore: Prepare release 1.5.019f354d
feat: Allow setting and deleting parameters within containere71e541
docs: Add how-to selectively inspect objectsbc454d0
docs: Add main extensions page7486612
docs: Add mkdocstrings-python to downstream projectsaf66c98
docs: Show extensions in tables4f0463e
docs: Fix breadcrumbs3636b7d
docs: Remove sponsors only mention for griffe-pydanticUpdates
markupsafe
from 3.0.1 to 3.0.2Release notes
Sourced from markupsafe's releases.
Changelog
Sourced from markupsafe's changelog.
Commits
28ace20
release version 3.0.26b51fd8
build requires at least setuptools 70.1 (#478)99dda9f
build requires at least setuptools 70.13d8fd8c
fix version1933c4b
fix versione85aff4
relax speedups str check (#477)8cb1691
relax speedups str check4dafb7c
start version 3.1.09c44ecf
update docs build275c769
Merge branch '2.1.x' into 3.0.xUpdates
mkdocs-macros-plugin
from 1.3.5 to 1.3.6Changelog
Sourced from mkdocs-macros-plugin's changelog.
... (truncated)
Commits
3a73707
Migrate to pyproject.toml99733be
Demote info messages as debug (#248)Updates
mkdocs-material
from 9.5.40 to 9.5.41Release notes
Sourced from mkdocs-material's releases.
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
5eef815
Prepare 9.5.41 release2d2e041
Updated dependencies790b0e8
JSON schema (#7622)649abd2
Fixed tooltip on logo lost on instant navigation0418a22
Updated README.md (#7618)e29e124
Fixed feedback visible on print92089c6
Fixed race condition in privacy plugin39d14d5
Fixed comment section appearing in print view6f703c1
Updated dependencies622194e
Documentation (#7613)Updates
mkdocstrings-python
from 1.12.0 to 1.12.2Release notes
Sourced from mkdocstrings-python's releases.
Changelog
Sourced from mkdocstrings-python's changelog.
Commits
1b064a0
chore: Prepare release 1.12.273f11dc
fix: Always render cross-references outside of signaturese6b7542
chore: Prepare release 1.12.19dee4d4
fix: Don't escape parameter default valuesUpdates
mypy
from 1.11.2 to 1.12.1Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
050d12f
Bump version to 1.12.1346e370
[1.12 backport] revert os.path change (#17995)71e1f05
Fix type object with type var default in union context (#17991)34d8603
Fix iteration over union (when self type is involved) (#17976)2485bed
Use kw-only args for member access booleans (#17975)a5e9b0b
Fix crash when showing partially analyzed type in error message (#17961)4775da1
Bump version to 1.12.1+devf2a39b1
Update version to 1.12.0b4ec37a
Add one more 1.12 changelog item (#17936)cc1c679
Better handling of generic functions in partial plugin (#17925)Updates
pillow
from 10.4.0 to 11.0.0Release notes
Sourced from pillow's releases.
... (truncated)
Changelog
Sourced from pillow's changelog.
... (truncated)
Commits
204aae6
11.0.0 version bumpf2cc87b
Update CHANGES.rst [ci skip]c855e8e
Merge pull request #8464 from radarhere/imagemath_type_hintdc37515
Merge pull request #8463 from hugovk/update-3.13-datec3d81d6
Update Python 3.13 release datea60610c
Added type hintsa5c58f2
Merge pull request #8460 from hugovk/mit-cmue74994e
Update licence to MIT-CMUb5e1115
Update CHANGES.rst [ci skip]686b5e2
Merge pull request #8392 from radarhere/tiff_seekUpdates
ruff
from 0.6.9 to 0.7.0Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
Commits
5e6de4e
Changelog for Ruff v0.7 (#13794)70e5c4a
RecodeTRY302
toTRY203
(#13502)9218d6b
Removeallow-unused-imports
setting from the common lint options (#13677)1b79ae9
[ruff-0.7] Stabilise the expansion ofopen-file-with-context-handler
to wor...2b87587
[flake8-pytest-style
] Fix defaults whenlint.flake8-pytest-style
config s...d1e15f6
Remove tab-size setting (#12835)89a8215
Remove error messages for removed CLI aliases (#12833)202c6a6
Removeoutput-format=text
setting (#12836)5c3c0c4
[red-knot] Inference for comparison of union types (#13781)6b7a738
Add explanation of fixable in--statistics
command (#13774)Updates
tox
from 4.21.2 to 4.23.0Release notes
Sourced from tox's releases.
Changelog
Sourced from tox's changelog.
Commits
7696a8e
release 4.23.0c01a023
Add NETRC to the default_pass_env list (#3410)971e7da
replace tool.pyproject and tool.tox.pyproject with tool.tox in config… (#3411)81a83bd
Fix typo in docs for dependency_groupsb912cb2
release 4.22.0568b90f
Add dependency-groups support (PEP-735) (#3409)f919d0d
Expose type checking dependencies into an extra (#3404)7c0e3ed
[pre-commit.ci] pre-commit autoupdate (#3406)6db3730
Fix the fix environment definition (#3407)2bf065a
Bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 (#3392)Updates
virtualenv
from 20.26.6 to 20.27.0Release notes
Sourced from virtualenv's releases.
Changelog
Sourced from virtualenv's changelog.