Fix a performance problem with HTML extraction where large HTML input could
trigger quadratic line counting behavior (#1392).
Improve and expand type annotations in the code base (#1394).
[3.5] -- 2023-10-06
Added
Add permalink_leading configuration option to the toc extension (#1339)
A new boolean option permalink_leading controls the position of the permanent
link anchors generated with permalink. Setting permalink_leading to True
will cause the links to be inserted at the start of the header, before any other
header content. The default behavior for permalink is to append permanent
links to the header, placing them after all other header content.
Changed
Add support for cPython version 3.12 (and PyPy 3.10) and drop support for
Python version 3.7 (#1357).
Optionally go to the GitHub project's settings and replace branch protection rules with the new rulesets. See the new GitHub configuration guide for more details.
New Features
New GitHub rulesets are provided with the recommended configuration to protect branches and tags.
The documentation is restructured into a more organized, easier-to-navigate user guide.
Documentation on how to configure the GitHub project and PyPI package is now provided.
Cookiecutter template
The pylint check too-many-return-statements is now disabled by default.
Generated protobuf files are now ignored by Git.
Bug Fixes
Cookiecutter template
Fix typo: Freqenz -> Frequenz
Fix mkdocs.yml to avoid specifying custom_templates for mkdocstrings as it is unused and is checked for existence in newer versions.
Optionally go to the GitHub project's settings and replace branch protection rules with the new rulesets. See the new GitHub configuration guide for more details.
New Features
New GitHub rulesets are provided with the recommended configuration to protect branches and tags.
The documentation is restructured into a more organized, easier-to-navigate user guide.
Documentation on how to configure the GitHub project and PyPI package is now provided.
Cookiecutter template
The pylint check too-many-return-statements is now disabled by default.
Generated protobuf files are now ignored by Git.
Bug Fixes
Cookiecutter template
Fix typo: Freqenz -> Frequenz
Fix mkdocs.yml to avoid specifying custom_templates for mkdocstrings as it is unused and is checked for existence in newer versions.
Fix paths that are not translated properly from the python package name (#198)
... (truncated)
Commits
c82454d Add section on configuring PyPI to the user guide (#205)
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 mypy
You 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 @final class without __bool__ cannot have falsey instances (Ilya Priven, PR 16566)
Do not allow TypedDict classes 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_only support for TypedDict and NamedTuple (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 super checks and add more tests (Nikita Sobolev, PR 16393)
Bumps the optional group with 11 updates:
0.3.2
0.3.9
5.12.0
5.13.2
3.4.4
3.5.2
1.0.4
1.0.5
9.4.4
9.5.6
0.23.0
0.24.0
0.7.5
0.8.0
1.5.1
1.8.0
3.4.2.10
3.5.0.20240129
3.0.2
3.0.3
0.7.5
0.8.0
Updates
pydoclint
from 0.3.2 to 0.3.9Release notes
Sourced from pydoclint's releases.
... (truncated)
Changelog
Sourced from pydoclint's changelog.
... (truncated)
Commits
75e485b
Fix false positive DOC203 in property methods (#115)55c0fde
Explain why allow-init-docstring defaults to Falsed88180a
Add link to README03c2ceb
Fix error in pre-commit hook example in README7e58949
Update README (add URL to doc site and repo)b5612ff
Improve documentation71cdf37
Fix prepended escape char handling (#94)d2b1d21
Update version; update changelogf70caa4
Disable parallel mode in pre-commit (#93)def500f
Update pre-commit dependenciesUpdates
isort
from 5.12.0 to 5.13.2Release notes
Sourced from isort's releases.
... (truncated)
Changelog
Sourced from isort's changelog.
Commits
c655831
Merge pull request #2214 from PyCQA/version/5.13.2b4335b4
Prepare version 5.13.2c36e43c
Merge pull request #2184 from bp72/issue/2154e38702f
Merge pull request #2213 from davidculley/confine-precommit-to-stagesee8d87f
Add fix for the error found by hypothesis5849ec2
Apply the bracket fix from issue 471 only for use_parentheses=Truedf0e119
confine pre-commit to stages9255bca
Merge pull request #2212 from PyCQA/bugfix/#2211-colors-extra5336d7d
Fix colors extras643d9c4
Merge pull request #2210 from PyCQA/version/5.13.1Updates
markdown
from 3.4.4 to 3.5.2Release notes
Sourced from markdown's releases.
Changelog
Sourced from markdown's changelog.
Commits
08dacae
Bump version to 3.5.2e466f38
Fix handling of bogus comments.a2a9c53
Update change log link in README.mdcef5afe
Update Changelog URL5d7f255
Fix missing search in docsbc14d59
Split changelog workflows to separate logic on when each gets run.9b06df2
ghp-import it not a command moduledac7977
Fix a minor oversight in #1407dcd69b1
Update docs deploy scriptsa63e6f3
Fix edge-case crash in InlineProcessorUpdates
mkdocs-macros-plugin
from 1.0.4 to 1.0.5Changelog
Sourced from mkdocs-macros-plugin's changelog.
Commits
4bfda0b
Fix issue with changelog no longer displayed (#186)82c5cdd
Merge pull request #183 from marcospereira/add-short-tag298f07f
Add a short_tag attribute to git context428a015
Remove include-markdown in webdoc, since it crashed readthedocs2161dd4
Update .readthedocs.ymlc64a08d
Merge pull request #182 from SimonMarquis/patch-11c1d2c4
Fix typo inRich Markdown Pages
docs9dba19e
Merge branch 'master' of github.com:fralau/mkdocs_macros_plugin into master7da7089
Add experimental logo0d36dde
Add experimental logoUpdates
mkdocs-material
from 9.4.4 to 9.5.6Release notes
Sourced from mkdocs-material's releases.
... (truncated)
Changelog
Sourced from mkdocs-material's changelog.
... (truncated)
Commits
6026738
Prepare 9.5.6 releasea65fd1e
Updated distribution files335dd3a
Fixed Markdown formatted nodes in Mermaid.jsf55ce2c
Updated Insiders changelog6724141
Documentation9d52e36
Prepare 9.5.5 release943e978
Merge pull request #6662 from squidfunk/fix/instant-loading-bugs95ad78a
Merge branch 'master' into fix/instant-loading-bugsbe95f49
Fixed capturing of keyboard events for custom elements6128ab9
Updated Tagalog translationsUpdates
mkdocstrings[python]
from 0.23.0 to 0.24.0Release notes
Sourced from mkdocstrings[python]'s releases.
Changelog
Sourced from mkdocstrings[python]'s changelog.
Commits
032e417
chore: Prepare release 0.24.0ce84dd5
feat: Cache downloaded inventories as local file4a97755
docs: Make recipe work with MkDocs-f
optionb3edf89
ci: Some typing fixes/ignored74fada
tests: Stop passing config file path to MkDocsConfig4dbb6d6
ci: Ruff auto-fix39694ac
chore: Template upgradeafc4ea4
fix:custom_templates
config was dropped in previous commit (#630)b61d4d1
refactor: Drop support for MkDocs < 1.4, modernize usages370a61d
fix: Makecustom_templates
relative to the config fileUpdates
frequenz-repo-config[api]
from 0.7.5 to 0.8.0Release notes
Sourced from frequenz-repo-config[api]'s releases.
... (truncated)
Changelog
Sourced from frequenz-repo-config[api]'s changelog.
... (truncated)
Commits
c82454d
Add section on configuring PyPI to the user guide (#205)56e4ed3
Update release notesdbc6601
Add section about configuring PyPi to the user guidea2ff3d2
Rename markdown file to match the page title560463d
Make page title consistent with the others711ac38
Prepare for v0.8.0 release (#204)e602cac
Prepare for v0.8.0 releaseaedc357
docs: Improvegh-pages
initialization (#203)b638e66
Ignore files generated fromproto
files (#202)6f34b76
Properly translate paths from the python package name (#199)Updates
mypy
from 1.5.1 to 1.8.0Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
3b46750
remove +dev suffix from versionc9bc833
Fix tests broken by hatchling (#16655)60d30e3
Fix crash with type alias toCallable[[Unpack[Tuple[Any, ...]]], Any]
(#16541)f53f422
Allow type ignores of PEP 695 constructs (#16608)7c33e7c
@final
class without bool cannot have falsey instances (#16566)c224da5
Do not intersect types in isinstance checks if at least one is final (#16330)d54cc35
Change example in test cases with no stubs available (#16513)Superseded by #86.