Sourced from black's releases.
\n\n\n23.7.0
\nHighlights
\n\n
\n- Runtime support for Python 3.7 has been removed. Formatting 3.7 code will still be\nsupported until further notice (#3765)
\nStable style
\n\n
\n- Fix a bug where an illegal trailing comma was added to return type annotations using\nPEP 604 unions (#3735)
\n- Fix several bugs and crashes where comments in stub files were removed or mishandled\nunder some circumstances (#3745)
\n- Fix a crash with multi-line magic comments like
\ntype: ignore
within parentheses\n(#3740)- Fix error in AST validation when Black removes trailing whitespace in a type comment\n(#3773)
\nPreview style
\n\n
\n- Implicitly concatenated strings used as function args are no longer wrapped inside\nparentheses (#3640)
\n- Remove blank lines between a class definition and its docstring (#3692)
\nConfiguration
\n\n
\n- The
\n--workers
argument to Black can now be specified via theBLACK_NUM_WORKERS
\nenvironment variable (#3743)- \n
.pytest_cache
,.ruff_cache
and.vscode
are now excluded by default (#3691)- Fix Black not honouring
\npyproject.toml
settings when running--stdin-filename
\nand thepyproject.toml
found isn't in the current working directory (#3719)- Black will now error if
\nexclude
andextend-exclude
have invalid data types in\npyproject.toml
, instead of silently doing the wrong thing (#3764)Packaging
\n\n
\n- Upgrade mypyc from 0.991 to 1.3 (#3697)
\n- Remove patching of Click that mitigated errors on Python 3.6 with
\nLANG=C
(#3768)Parser
\n\n
\n- Add support for the new PEP 695 syntax in Python 3.12 (#3703)
\nPerformance
\n\n
\n- Speed up Black significantly when the cache is full (#3751)
\n- Avoid importing
\nIPython
in a case where we wouldn't need it (#3748)Output
\n\n
... (truncated)
\nSourced from black's changelog.
\n\n\n23.7.0
\nHighlights
\n\n
\n- Runtime support for Python 3.7 has been removed. Formatting 3.7 code will still be\nsupported until further notice (#3765)
\nStable style
\n\n
\n- Fix a bug where an illegal trailing comma was added to return type annotations using\nPEP 604 unions (#3735)
\n- Fix several bugs and crashes where comments in stub files were removed or mishandled\nunder some circumstances (#3745)
\n- Fix a crash with multi-line magic comments like
\ntype: ignore
within parentheses\n(#3740)- Fix error in AST validation when Black removes trailing whitespace in a type comment\n(#3773)
\nPreview style
\n\n
\n- Implicitly concatenated strings used as function args are no longer wrapped inside\nparentheses (#3640)
\n- Remove blank lines between a class definition and its docstring (#3692)
\nConfiguration
\n\n
\n- The
\n--workers
argument to Black can now be specified via theBLACK_NUM_WORKERS
\nenvironment variable (#3743)- \n
.pytest_cache
,.ruff_cache
and.vscode
are now excluded by default (#3691)- Fix Black not honouring
\npyproject.toml
settings when running--stdin-filename
\nand thepyproject.toml
found isn't in the current working directory (#3719)- Black will now error if
\nexclude
andextend-exclude
have invalid data types in\npyproject.toml
, instead of silently doing the wrong thing (#3764)Packaging
\n\n
\n- Upgrade mypyc from 0.991 to 1.3 (#3697)
\n- Remove patching of Click that mitigated errors on Python 3.6 with
\nLANG=C
(#3768)Parser
\n\n
\n- Add support for the new PEP 695 syntax in Python 3.12 (#3703)
\nPerformance
\n\n
\n- Speed up Black significantly when the cache is full (#3751)
\n- Avoid importing
\nIPython
in a case where we wouldn't need it (#3748)Output
\n\n
... (truncated)
\n193ee76
Prepare release 23.7.0 (#3776)38723bb
Unpin pytest-xdist (#3772)138769a
Disable coverage on pypy tests (#3777)ad3724b
Upgrade to latest mypy (#3775)b8e2ec7
Fix crash on type comment with trailing space (#3773)257d392
Fix removed comments in stub files (#3745)2593af2
Improve performance by skipping unnecessary normalisation (#3751)f3b50e4
Add CITATION.cff file (#3723)0b4d7d5
Run pyupgrade on blib2to3 and src (#3771)114e835
Remove click patch (#3768)Sourced from blacken-docs's changelog.
\n\n\n1.14.0 (2023-06-13)
\n\n
\n- Support Python 3.12.
\n
4b94add
Version 1.14.0292cb18
Support Python 3.12 (#251)72ecf2c
[pre-commit.ci] pre-commit autoupdate (#249)ea8f1ca
Upgrade requirements (#248)9979d7a
Upgrade requirements (#247)7b71075
[pre-commit.ci] pre-commit autoupdate (#245)6280868
[pre-commit.ci] pre-commit autoupdate (#244)83efc37
Upgrade requirements (#243)7aedc23
[pre-commit.ci] pre-commit autoupdate (#242)d78d593
[pre-commit.ci] pre-commit autoupdate (#241)Sourced from black's releases.
\n\n\n23.3.0
\nHighlights
\nThis release fixes a longstanding confusing behavior in Black's GitHub action, where the\nversion of the action did not determine the version of Black being run (issue #3382). In\naddition, there is a small bug fix around imports and a number of improvements to the\npreview style.
\nPlease try out the\npreview style\nwith
\nblack --preview
and tell us your feedback. All changes in the preview style are\nexpected to become part of Black's stable style in January 2024.Stable style
\n\n
\n- Import lines with
\n# fmt: skip
and# fmt: off
no longer have an extra blank line\nadded when they are right after another import line (#3610)Preview style
\n\n
\n- Add trailing commas to collection literals even if there's a comment after the last\nentry (#3393)
\n- \n
async def
,async for
, andasync with
statements are now formatted consistently\ncompared to their non-async version. (#3609)- \n
with
statements that contain two context managers will be consistently wrapped in\nparentheses (#3589)- Let string splitters respect East Asian Width\n(#3445)
\n- Now long string literals can be split after East Asian commas and periods (
\n\u3001
U+3001\nIDEOGRAPHIC COMMA,\u3002
U+3002 IDEOGRAPHIC FULL STOP, &\uff0c
U+FF0C FULLWIDTH COMMA)\nbesides before spaces (#3445)- For stubs, enforce one blank line after a nested class with a body other than just\n
\n...
(#3564)- Improve handling of multiline strings by changing line split behavior (#1879)
\nParser
\n\n
\n- Added support for formatting files with invalid type comments (#3594)
\nIntegrations
\n\n
\n- Update GitHub Action to use the version of Black equivalent to action's version if\nversion input is not specified (#3543)
\n- Fix missing Python binary path in autoload script for vim (#3508)
\nDocumentation
\n\n
\n\n- Document that only the most recent release is supported for security issues;\nvulnerabilities should be reported through Tidelift (#3612)
\n
... (truncated)
\nSourced from black's changelog.
\n\n\n23.3.0
\nHighlights
\nThis release fixes a longstanding confusing behavior in Black's GitHub action, where the\nversion of the action did not determine the version of Black being run (issue #3382). In\naddition, there is a small bug fix around imports and a number of improvements to the\npreview style.
\nPlease try out the\npreview style\nwith
\nblack --preview
and tell us your feedback. All changes in the preview style are\nexpected to become part of Black's stable style in January 2024.Stable style
\n\n
\n- Import lines with
\n# fmt: skip
and# fmt: off
no longer have an extra blank line\nadded when they are right after another import line (#3610)Preview style
\n\n
\n- Add trailing commas to collection literals even if there's a comment after the last\nentry (#3393)
\n- \n
async def
,async for
, andasync with
statements are now formatted consistently\ncompared to their non-async version. (#3609)- \n
with
statements that contain two context managers will be consistently wrapped in\nparentheses (#3589)- Let string splitters respect East Asian Width\n(#3445)
\n- Now long string literals can be split after East Asian commas and periods (
\n\u3001
U+3001\nIDEOGRAPHIC COMMA,\u3002
U+3002 IDEOGRAPHIC FULL STOP, &\uff0c
U+FF0C FULLWIDTH COMMA)\nbesides before spaces (#3445)- For stubs, enforce one blank line after a nested class with a body other than just\n
\n...
(#3564)- Improve handling of multiline strings by changing line split behavior (#1879)
\nParser
\n\n
\n- Added support for formatting files with invalid type comments (#3594)
\nIntegrations
\n\n
\n- Update GitHub Action to use the version of Black equivalent to action's version if\nversion input is not specified (#3543)
\n- Fix missing Python binary path in autoload script for vim (#3508)
\nDocumentation
\n\n
\n\n- Document that only the most recent release is supported for security issues;\nvulnerabilities should be reported through Tidelift (#3612)
\n
... (truncated)
\nbf7a162
Fixup the changelog (#3628)9b2b048
Prepare release 23.3.0 (#3625)bf5abdb
Specify Python exec path with minor version if available (#3508)b542f58
Use GH action version when version argument not specified (#3543)f3b1a3b
Bump furo from 2022.12.7 to 2023.3.23 in /docs (#3624)ef6e079
Let string splitters respect East_Asian_Width
property (#3445)5c064a9
Bump sphinx from 5.3.0 to 6.1.3 in /docs (#3499)3a9d6f0
Bump myst-parser from 0.18.1 to 1.0.0 in /docs (#3601)53c23e6
Support files with type comment syntax errors (#3594)dba3c26
Fix bug introduced in #3564. (#3615)Sourced from sphinx's releases.
\n\n\nv6.1.3
\nChangelog: https://www.sphinx-doc.org/en/master/changes.html
\n
Sourced from sphinx's changelog.
\n\n\nRelease 6.1.3 (released Jan 10, 2023)
\nBugs fixed
\n\n
776d01e
Bump to 6.1.3 finala2e922a
CHANGES for Sphinx 6.1.331162a9
Handle exceptions for get_node_source
and get_node_line
dcb4429
Restore Sphinx 5 nodes.Element
copying behaviour2a7c40d
Undo parallel image changes7841d3d
Ignore more checks in Ruff 0.0.214ddbc5b5
Bump versionSourced from furo's changelog.
\n\n\nChangelog
\n\n2023.03.27 -- Tasty Tangerine
\n\n
\n- Regenerate with newer version of sphinx-theme-builder, to fix RECORD hashes.
\n- Add missing class to Font Awesome examples
\n2023.03.23 -- Sassy Saffron
\n\n
\n- Update Python version classifiers.
\n- Increase the icon size in mobile header.
\n- Increase admonition title bg opacity.
\n- Change the default API background to transparent.
\n- Transition the API background change.
\n- Remove the "indent" of API entries which have a background.
\n- Break long inline code literals.
\n2022.12.07 -- Reverent Raspberry
\n\n
\n- \u2728 Add support for Sphinx 6.
\n- \u2728 Improve footnote presentation with docutils 0.18+.
\n- Drop support for Sphinx 4.
\n- Improve documentation about what the edit button does.
\n- Improve handling of empty-flexboxes for better print experience on Chrome.
\n- Improve styling for inline signatures.
\n- Replace the
\nmeta
generator tag with a comment.- Tweak labels with icons to prevent users selecting icons as text on touch.
\n2022.09.29 -- Quaint Quartz
\n\n
\n- Add ability to set arbitrary URLs for edit button.
\n- Add support for aligning text in MyST-parser generated tables.
\n2022.09.15 -- Pragmatic Pistachio
\n\n
\n\n- Add a minimum version constraint on pygments.
\n- Add an explicit dependency on
\nsass
.- Change right sidebar title from "Contents" to "On this page".
\n- Correctly position sidebars on small screens.
\n
... (truncated)
\n2f61e10
Prepare release: 2023.03.275c7aedd
Update changelog0535011
Add missing class to Font Awesome examples (#629)811f1e7
Remove unused templates_path
(#627)961d4e9
Add a inline-code as an example heading48af8eb
Back to development81139dd
Prepare release: 2023.03.23dafa73a
Update changelog82591ef
Allow all pre
tags to have overflows55b32f0
Update Python version classifiers (#626)Sourced from black's releases.
\n\n\n22.12.0
\nPreview style
\n\n\n
\n- Enforce empty lines before classes and functions with sticky leading comments (#3302)
\n- Reformat empty and whitespace-only files as either an empty file (if no newline is\npresent) or as a single newline character (if a newline is present) (#3348)
\n- Implicitly concatenated strings used as function args are now wrapped inside\nparentheses (#3307)
\n- Correctly handle trailing commas that are inside a line's leading non-nested parens\n(#3370)
\nConfiguration
\n\n\n
\n- Fix incorrectly applied
\n.gitignore
rules by considering the.gitignore
location\nand the relative path to the target file (#3338)- Fix incorrectly ignoring
\n.gitignore
presence when more than one source directory is\nspecified (#3336)Parser
\n\n\n
\n- Parsing support has been added for walruses inside generator expression that are\npassed as function args (for example,\n
\nany(match := my_re.match(text) for text in texts)
) (#3327).Integrations
\n\n\n
\n- Vim plugin: Optionally allow using the system installation of Black via\n
\nlet g:black_use_virtualenv = 0
(#3309)
Sourced from black's changelog.
\n\n\n22.12.0
\nPreview style
\n\n\n
\n- Enforce empty lines before classes and functions with sticky leading comments (#3302)
\n- Reformat empty and whitespace-only files as either an empty file (if no newline is\npresent) or as a single newline character (if a newline is present) (#3348)
\n- Implicitly concatenated strings used as function args are now wrapped inside\nparentheses (#3307)
\n- Correctly handle trailing commas that are inside a line's leading non-nested parens\n(#3370)
\nConfiguration
\n\n\n
\n- Fix incorrectly applied
\n.gitignore
rules by considering the.gitignore
location\nand the relative path to the target file (#3338)- Fix incorrectly ignoring
\n.gitignore
presence when more than one source directory is\nspecified (#3336)Parser
\n\n\n
\n- Parsing support has been added for walruses inside generator expression that are\npassed as function args (for example,\n
\nany(match := my_re.match(text) for text in texts)
) (#3327).Integrations
\n\n\n
\n- Vim plugin: Optionally allow using the system installation of Black via\n
\nlet g:black_use_virtualenv = 0
(#3309)
2ddea29
Prepare release 22.12.0 (#3413)5b1443a
release: skip bad macos wheels for now (#3411)9ace064
Bump peter-evans/find-comment from 2.0.1 to 2.1.0 (#3404)19c5fe4
Fix CI with latest flake8-bugbear (#3412)d4a8564
Bump sphinx-copybutton from 0.5.0 to 0.5.1 in /docs (#3390)2793249
Wordsmith current_style.md (#3383)d97b789
Remove whitespaces of whitespace-only files (#3348)c23a5c1
Clarify that Black runs with --safe by default (#3378)8091b25
Correctly handle trailing commas that are inside a line's leading non-nested ...ffaaf48
Compare each .gitignore found with an appropiate relative path (#3338)Sourced from black's releases.
\n\n\n22.8.0
\nHighlights
\n\n
\n- Python 3.11 is now supported, except for blackd as aiohttp does not support 3.11 as of publishing (#3234)
\n- This is the last release that supports running Black on Python 3.6 (formatting 3.6 code will continue to be supported until further notice)
\n- Reword the stability policy to say that we may, in rare cases, make changes that affect code that was not previously formatted by Black (#3155)
\nStable style
\n\n
\n- Fix an infinite loop when using
\n# fmt: on/off
in the middle of an expression or code block (#3158)- Fix incorrect handling of
\n# fmt: skip
on colon (:
) lines (#3148)- Comments are no longer deleted when a line had spaces removed around power operators (#2874)
\nPreview style
\n\n
\n- Single-character closing docstring quotes are no longer moved to their own line as this is invalid. This was a bug introduced in version 22.6.0. (#3166)
\n- \n
--skip-string-normalization
/-S
now prevents docstring prefixes from being normalized as expected (#3168)- When using
\n--skip-magic-trailing-comma
or-C
, trailing commas are stripped from subscript expressions with more than 1 element (#3209)- Implicitly concatenated strings inside a list, set, or tuple are now wrapped inside parentheses (#3162)
\n- Fix a string merging/split issue when a comment is present in the middle of implicitly concatenated strings on its own line (#3227)
\nBlackd
\n\n
\n- \n
blackd
now supports enabling the preview style via theX-Preview
header (#3217)Configuration
\n\n
\n- Black now uses the presence of debug f-strings to detect target version (#3215)
\n- Fix misdetection of project root and verbose logging of sources in cases involving
\n--stdin-filename
(#3216)- Immediate
\n.gitignore
files in source directories given on the command line are now also respected, previously only.gitignore
files in the project root and automatically discovered directories were respected (#3237)Documentation
\n\n
\n- Recommend using BlackConnect in IntelliJ IDEs (#3150)
\nIntegrations
\n\n
\n- Vim plugin: prefix messages with
\nBlack:
so it's clear they come from Black (#3194)- Docker: changed to a /opt/venv installation + added to PATH to be available to non-root users (#3202)
\nOutput
\n\n
\n- Change from deprecated
\nasyncio.get_event_loop()
to create our event loop which removes DeprecationWarning (#3164)- Remove logging from internal
\nblib2to3
library since it regularly emits error logs about failed caching that can and should be ignored (#3193)Parser
\n\n
\n- Type comments are now included in the AST equivalence check consistently so accidental deletion raises an error. Though type comments can't be tracked when running on PyPy 3.7 due to standard library limitations. (#2874)
\nPerformance
\n\n
... (truncated)
\nSourced from black's changelog.
\n\n\n22.8.0
\nHighlights
\n\n
\n- Python 3.11 is now supported, except for blackd as aiohttp does not support 3.11 as\nof publishing (#3234)
\n- This is the last release that supports running Black on Python 3.6 (formatting 3.6\ncode will continue to be supported until further notice)
\n- Reword the stability policy to say that we may, in rare cases, make changes that\naffect code that was not previously formatted by Black (#3155)
\nStable style
\n\n
\n- Fix an infinite loop when using
\n# fmt: on/off
in the middle of an expression or code\nblock (#3158)- Fix incorrect handling of
\n# fmt: skip
on colon (:
) lines (#3148)- Comments are no longer deleted when a line had spaces removed around power operators\n(#2874)
\nPreview style
\n\n
\n- Single-character closing docstring quotes are no longer moved to their own line as\nthis is invalid. This was a bug introduced in version 22.6.0. (#3166)
\n- \n
--skip-string-normalization
/-S
now prevents docstring prefixes from being\nnormalized as expected (#3168)- When using
\n--skip-magic-trailing-comma
or-C
, trailing commas are stripped from\nsubscript expressions with more than 1 element (#3209)- Implicitly concatenated strings inside a list, set, or tuple are now wrapped inside\nparentheses (#3162)
\n- Fix a string merging/split issue when a comment is present in the middle of implicitly\nconcatenated strings on its own line (#3227)
\nBlackd
\n\n
\n- \n
blackd
now supports enabling the preview style via theX-Preview
header (#3217)Configuration
\n\n
\n- Black now uses the presence of debug f-strings to detect target version (#3215)
\n- Fix misdetection of project root and verbose logging of sources in cases involving\n
\n--stdin-filename
(#3216)- Immediate
\n.gitignore
files in source directories given on the command line are now\nalso respected, previously only.gitignore
files in the project root and\nautomatically discovered directories were respected (#3237)Documentation
\n\n
\n- Recommend using BlackConnect in IntelliJ IDEs (#3150)
\nIntegrations
\n\n
... (truncated)
\n2018e66
Prepare docs for release 22.8.0 (#3248)0019261
Update stable branch after publishing to PyPI (#3223)7757078
Improve & update release process to reflect recent changes (#3242)767604e
Use .gitignore files in the initial source directories (#3237)2c90480
Use strict mypy checking (#3222)ba618a3
Add parens around implicit string concatenations where it increases readabili...c0cc19b
Delay worker count determinationafed2c0
Load .gitignore and exclude regex at time of usee269f44
Lazily import parallelized format modulesc47b91f
Fix misdetection of project root with --stdin-filename
(#3216)Sourced from asgiref's changelog.
\n\n\n3.5.0 (2022-01-22)
\n\n
\n- \n
\nPython 3.6 is no longer supported, and asyncio calls have been changed to\nuse only the modern versions of the APIs as a result
\n- \n
\nSeveral causes of RuntimeErrors in cases where an event loop was assigned\nto a thread but not running
\n- \n
\nSpeed improvements in the Local class
\n3.4.1 (2021-07-01)
\n\n
\n- Fixed an issue with the deadlock detection where it had false positives\nduring exception handling.
\n3.4.0 (2021-06-27)
\n\n
\n- \n
\nCalling sync_to_async directly from inside itself (which causes a deadlock\nwhen in the default, thread-sensitive mode) now has deadlock detection.
\n- \n
\nasyncio usage has been updated to use the new versions of get_event_loop,\nensure_future, wait and gather, avoiding deprecation warnings in Python 3.10.\nPython 3.6 installs continue to use the old versions; this is only for 3.7+
\n- \n
\nsync_to_async and async_to_sync now have improved type hints that pass\nthrough the underlying function type correctly.
\n- \n
\nAll Websocket* types are now spelled WebSocket, to match our specs and the\nofficial spelling. The old names will work until release 3.5.0, but will\nraise deprecation warnings.
\n- \n
\nThe typing for WebSocketScope and HTTPScope's
\nextensions
key has been\nfixed.3.3.4 (2021-04-06)
\n\n
\n- The async_to_sync type error is now a warning due the high false negative\nrate when trying to detect coroutine-returning callables in Python.
\n3.3.3 (2021-04-06)
\n\n
... (truncated)
\n8b61513
Releasing 3.5.0b2e1c9d
Fixed pytest_asyncio deprecation warning.2eda551
Added testing for Python 3.10.02fecb6
Drop Python 3.6 (#307)6689c0a
Added stacklevel to warning in AsyncToSync.4364f9b
Changed how StatelessServer handles event loops7bc055c
Update implementations.rst (#295)c758984
Move current_task import choice to module definition timedfe87b2
Fixed #292: Use get_event_loop in class-level codeb3a65e3
Removed class variable which has been unused since a0bbe90b8e2a45
0.12.006580c6
Update changelogb45de23
Fixed failing test case, 'test_asyncio_marker_without_loop'.238cced
Put event_loop first among the fixtures of asyncio tests, fixes #154.e5e3dc7
Added unittests for issue #154.a7e5795
0.12.0 open for business!1026c39
0.11.0ab2b140
Test on Python 3.8, drop 3.3 and 3.46397a22
plugin: Use pytest 5.4.0 new Function API21a0f94
Replace yield_fixture() by fixture()Sourced from pytest's releases.
\n\n\n5.4.1
\npytest 5.4.1 (2020-03-13)
\nBug Fixes
\n\n
\n- \n
\n#6909: Revert the change introduced by #6330, which required all arguments to
\n@pytest.mark.parametrize
to be explicitly defined in the function signature.The intention of the original change was to remove what was expected to be an unintended/surprising behavior, but it turns out many people relied on it, so the restriction has been reverted.
\n- \n
\n#6910: Fix crash when plugins return an unknown stats while using the
\n--reportlog
option.
Sourced from pytest's changelog.
\n3d0f3ba
Preparing release version 5.4.1b9e2cd0
Merge pull request #6914 from nicoddemus/revert-6330a84fcbf
Revert "[parametrize] enforce explicit argnames declaration (#6330)"59c1bfa
Merge pull request #6913 from nicoddemus/backport-69103267f64
Merge pull request #6910 from nicoddemus/resultlog-logreportc9fd1bd
Preparing release version 5.4.093aa988
Merge pull request #6901 from RonnyPfannschmidt/regendoc-fix-simple7996724
Merge pull request #6902 from RoyalTS/filterwarnings-docfix90ee8a7
docfix378a75d
run and fix tox -e regen to prepare 5.4Sourced from jinja2's releases.
\n\n\n2.11.1
\nThis fixes an issue in async environment when indexing the result of an attribute lookup, like
\n\n{{ data.items[1:] }}
.
Sourced from jinja2's changelog.
\n\n\nVersion 2.11.1
\nReleased 2020-01-30
\n\n
\n- Fix a bug that prevented looking up a key after an attribute (
\n{{ data.items[1:] }}
) in an async template. 1141Version 2.11.0
\nReleased 2020-01-27
\n\n
\n ... (truncated)\n- Drop support for Python 2.6, 3.3, and 3.4. This will be the last version to support Python 2.7 and 3.5.
\n- Added a new
\nChainableUndefined
class to support getitem and getattr on an undefined object. 977- Allow
\n{%+
syntax (with NOP behavior) whenlstrip_blocks
is disabled. 748- Added a
\ndefault
parameter for themap
filter. 557- Exclude environment globals from meta.find_undeclared_variables. 931
\n- Float literals can be written with scientific notation, like 2.56e-3. 912, 922
\n- Int and float literals can be written with the '_' separator for legibility, like 12_345. 923
\n- Fix a bug causing deadlocks in
\nLRUCache.setdefault
. 1000- The
\ntrim
filter takes an optional string of characters to trim. 828- A new
\njinja2.ext.debug
extension adds a{% debug %}
tag to quickly dump the current context and available filters and tests. 174, 798, 983- Lexing templates with large amounts of whitespace is much faster. 857, 858
\n- Parentheses around comparisons are preserved, so
\n{{ 2 * (3 < 5) }}
outputs "2" instead of "False". 755, 938- Add new
\nboolean
,false
,true
,integer
andfloat
tests. 824- The environment's
\nfinalize
function is only applied to the output of expressions (constant or not), not static template data. 63- When providing multiple paths to
\nFileSystemLoader
, a template can have the same name as a directory. 821- Always return Undefined when omitting the
\nelse
clause in a{{ 'foo' if bar }}
expression, regardless of the environment'sundefined
class. Omitting theelse
clause is a valid shortcut and should not raise an error when using StrictUndefined. 710, 1079- Fix behavior of
\nloop
control variables such aslength
andrevindex0
when looping over a generator. 459, 751, 794, 993- Async support is only loaded the first time an environment enables it, in order to avoid a slow initial import. 765
\n- In async environments, the
\n|map
filter will await the filter call if needed. 913- In for loops that access
\nloop
attributes, the iterator is not advanced ahead of the current iteration unlesslength
,revindex
,nextitem
, orlast
are accessed. This makes it less likely to breakgroupby
results. 555, 1101- In async environments, the
\nloop
attributeslength
andrevindex
work for async iterators. 1101- In async environments, values from attribute/property access will be awaited if needed. 1101
\n- ~loader.PackageLoader doesn't depend on setuptools or pkg_resources. 970
\n- \n
PackageLoader
has limited support for 420 namespace packages. 1097- Support os.PathLike objects in ~loader.FileSystemLoader and ~loader.ModuleLoader. 870
\n- ~nativetypes.NativeTemplate correctly handles quotes between expressions.
\n"'{{ a }}', '{{ b }}'"
renders as the tuple('1', '2')
rather than the string'1, 2'
. 1020- Creating a ~nativetypes.NativeTemplate directly creates a ~nativetypes.NativeEnvironment instead of a default Environment. 1091
\n- After calling
\nLRUCache.copy()
, the copy's queue methods point to the correct queue. 843- Compiling templates always writes UTF-8 instead of defaulting to the system encoding. 889
\n- \n
|wordwrap
filter treats existing newlines as separate paragraphs to be wrapped individually, rather than creating short intermediate lines. 175- Add
\nbreak_on_hyphens
parameter to|wordwrap
filter. 550- Cython compiled functions decorated as context functions will be passed the context. 1108
\n- When chained comparisons of constants are evaluated at compile time, the result follows Python's behavior of returning
\nFalse
if any comparison returnsFalse
, rather than only the last one. 1102- Tracebacks for exceptions in templates show the correct line numbers and source for Python >= 3.7. 1104
\n- Tracebacks for template syntax errors in Python 3 no longer show internal compiler frames. 763
\n- Add a
\nDerivedContextReference
node that can be used by extensions to get the current context and local variables such asloop
. 860- Constant folding during compilation is applied to some node types that were previously overlooked. 733
\n- \n
TemplateSyntaxError.source
is not empty when raised from an included template. 457
b85283e
release version 2.11.13d5bfc6
Merge pull request #1143 from pallets/bugfix/attribute-accessd61c1ea
add changelog15d7e61
Added regression test for slicing of attributes05dee9b
Fix attribute access in async code. Fixes #1141bbdafe3
release version 2.11.09ff27f6
add python 3.8 classifier, clean up changelogd312609
isolate bytecode cache tests9849979
import Markup from markupsafe, fix flake8 import warningsc6d864c
increment bytecode cache versionSourced from janus's changelog.
\n\n\n0.5.0 (2020-04-23)
\n\n
\n- Remove explicit loop arguments and forbid creating queues outside event loops #246
\n0.4.0 (2018-07-28)
\n\n
\n- Add
\npy.typed
macro #89- Drop python 3.4 support and fix minimal version python3.5.3 #88
\n- Add property with that indicates if queue is closed #86
\n0.3.2 (2018-07-06)
\n\n
\n- Fixed python 3.7 support #97
\n0.3.1 (2018-01-30)
\n\n
\n- Fixed bug with join() in case tasks are added by sync_q.put() #75
\n0.3.0 (2017-02-21)
\n\n
\n- Expose unfinished_tasks property #34
\n0.2.4 (2016-12-05)
\n\n
\n- Restore tarball deploying
\n0.2.3 (2016-07-12)
\n\n
\n- Fix exception type
\n0.2.2 (2016-07-11)
\n\n
\n- Update asyncio.async() to use asyncio.ensure_future() #6
\n0.2.1 (2016-03-24)
\n\n
\n- Fix python setup.py test command #4
\n0.2.0 (2015-09-20)
\n ... (truncated)\n
8e89b45
Bump to 0.5.0ec8592b
Fix up Python 3.8 loop argument warnings (#246)2543af6
Bump coverage from 5.0.4 to 5.103d1b36
Bump tox from 3.14.5 to 3.14.68219c38
Bump coverage from 5.0.3 to 5.0.485ec71d
Bump pytest from 5.4.0 to 5.4.13b974c9
Bump pytest from 5.3.5 to 5.4.0282dc12
Bump mypy from 0.761 to 0.7701364fb3
Bump tox from 3.14.4 to 3.14.5dc519bb
Bump tox from 3.14.3 to 3.14.43d6e7b4
v1.3.0 - support additive merging of Counter
types56a258a
v1.2.1 - tidy docs and variable names61ab213
v1.2.0 - support both TYPESAFE_REPLACE and TYPESAFE_ADDITIVE merge strategies...b331bb5
cleanup Makefile6f577bf
officially label support for python3.884faf37
use pipenv for managing dev dependencies3a8761a
Update README.md