The default hashlib.sha1 may not be available in FIPS builds. Don't
access it at import time so the developer has time to change the default.
:issue:5448
Don't initialize the cli attribute in the sansio scaffold, but rather in
the Flask concrete class. :pr:5270
If Pydantic is installed, parameter data classes automatically have Pydantic type validation enabled.
Parameter primitives classes ParamInt, ParamFloat, ParamBool, ParamStr, and ParamNone.
Parameter file classes ParamFile and ParamDataFrame.
Changed
All ParamData objects now internally track the latest time that they or any of their children were last updated, which is returned by ParamData.last_updated.
Param and Struct are combined into a single class ParamDataclass.
If Pydantic is installed, parameter data classes automatically have Pydantic type
validation enabled.
Parameter primitives classes ParamInt, ParamFloat, ParamBool, ParamStr, and
ParamNone.
Parameter file classes ParamFile and ParamDataFrame.
Changed
All ParamData objects now internally track the latest time that they or any of their
children were last updated, which is returned by ParamData.last_updated.
Param and Struct are combined into a single class ParamDataclass.
We’ve just uploaded mypy 1.10 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 TypeIs (PEP 742)
Mypy now supports TypeIs (PEP 742), which allows
functions to narrow the type of a value, similar to isinstance(). Unlike TypeGuard,
TypeIs can narrow in both the if and else branches of an if statement:
#12069: A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local parameter instead of the pathlib.Path parameter which replaced it:
pytest_ignore_collect{.interpreted-text role="hook"} - the path parameter - use collection_path instead.
pytest_collect_file{.interpreted-text role="hook"} - the path parameter - use file_path instead.
pytest_pycollect_makemodule{.interpreted-text role="hook"} - the path parameter - use module_path instead.
pytest_report_header{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
pytest_report_collectionfinish{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
The replacement parameters are available since pytest 7.0.0.
The old parameters will be removed in pytest 9.0.0.
See legacy-path-hooks-deprecated{.interpreted-text role="ref"} for more details.
Features
#11871: Added support for reading command line arguments from a file using the prefix character @, like e.g.: pytest @tests.txt. The file must have one argument per line.
See Read arguments from file <args-from-file>{.interpreted-text role="ref"} for details.
Improvements
#11523: pytest.importorskip{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised ImportError{.interpreted-text role="class"} instead of ModuleNotFoundError{.interpreted-text role="class"}.
The warning can be suppressed by passing exc_type=ImportError to pytest.importorskip{.interpreted-text role="func"}.
See import-or-skip-import-error{.interpreted-text role="ref"} for details.
#11728: For unittest-based tests, exceptions during class cleanup (as raised by functions registered with TestCase.addClassCleanup <unittest.TestCase.addClassCleanup>{.interpreted-text role="meth"}) are now reported instead of silently failing.
#11777: Text is no longer truncated in the short test summary info section when -vv is given.
#12112: Improved namespace packages detection when consider_namespace_packages{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs).
#9502: Added PYTEST_VERSION{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of pytest.__version__, and among other things can be used to easily check if code is running from within a pytest run.
Bug Fixes
#12065: Fixed a regression in pytest 8.0.0 where test classes containing setup_method and tests using @staticmethod or @classmethod would crash with AttributeError: 'NoneType' object has no attribute 'setup_method'.
Now the request.instance <pytest.FixtureRequest.instance>{.interpreted-text role="attr"} attribute of tests using @staticmethod and @classmethod is no longer None, but a fresh instance of the class, like in non-static methods.
# Clear all cookies.
context.clear_cookies()
# New: clear cookies with a particular name.
context.clear_cookies(name="session-id")
# New: clear cookies for a particular domain.
context.clear_cookies(domain="my-origin.com")
New method locator.content_frame converts a {@link Locator} object to a FrameLocator. This can be useful when you have a Locator object obtained somewhere, and later on would like to interact with the content inside the frame.
New method frameLocator.owner converts a FrameLocator object to a Locator. This can be useful when you have a FrameLocator object obtained somewhere, and later on would like to interact with the iframe element.
Conda builds are now published for macOS-arm64 and Linux-arm64.
Browser Versions
Chromium 124.0.6367.8
Mozilla Firefox 124.0
WebKit 17.4
This version was also tested against the following stable channels:
Google Chrome 123
Microsoft Edge 123
v1.42.0
New Locator Handler
New method page.add_locator_handler(locator, handler) registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears.
# Setup the handler.
page.add_locator_handler(
</tr></table>
... (truncated)
Commits
d12ce3b feat(roll): roll Playwright to v1.43 (#2395)
d1e3f3c build(deps): bump types-requests from 2.31.0.20240311 to 2.31.0.20240406 (#2396)
b26b1f5 test: port test_launcher to sync test-suite (#2392)
d796ac7 devops(conda): publish a single version per OS instead of each supported Pyth...
ac6e957 fix(cli): don't show a stack trace when command + c of the CLI (#2390)
66ddfee devops: add osx-arm64 and linux-aarch64 conda package builds (#2211)
6a10c42 build(deps): bump pillow from 10.2.0 to 10.3.0 (#2387)
7e5f197 feat(roll): roll Playwright to 1.43.0-beta-1711484700000 (#2381)
6a84c65 build(deps): bump flaky from 3.8.0 to 3.8.1 (#2377)
963d16d build(deps): bump setuptools from 69.1.1 to 69.2.0 (#2379)
[orm] [bug] Added new attribute _orm.ORMExecuteState.is_from_statement to
detect statements created using _sql.Select.from_statement(), and
enhanced FromStatement to set _orm.ORMExecuteState.is_select,
_orm.ORMExecuteState.is_insert,
_orm.ORMExecuteState.is_update, and
_orm.ORMExecuteState.is_delete according to the element that is
sent to the _sql.Select.from_statement() method itself.
[orm] [bug] Fixed issue in _orm.selectin_polymorphic() loader option where
attributes defined with _orm.composite() on a superclass would cause
an internal exception on load.
[orm] [bug] [regression] Fixed regression from 1.4 where using _orm.defaultload() in
conjunction with a non-propagating loader like _orm.contains_eager()
would nonetheless propagate the _orm.contains_eager() to a lazy load
operation, causing incorrect queries as this option is only intended to
come from an original load.
[orm] [bug] Fixed issue in ORM Annotated Declarative where typing issue where literals
defined using PEP 695 type aliases would not work with inference of
Enum datatypes. Pull request courtesy of Alc-Alc.
[orm] [bug] Fixed issue in _orm.selectin_polymorphic() loader option where the
SELECT emitted would only accommodate for the child-most class among the
result rows that were returned, leading intermediary-class attributes to be
unloaded if there were no concrete instances of that intermediary-class
present in the result. This issue only presented itself for multi-level
inheritance hierarchies.
[orm] [bug] Fixed issue in _orm.Session.bulk_save_objects() where the form of the
identity key produced when using return_defaults=True would be
incorrect. This could lead to an errors during pickling as well as identity
map mismatches.
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 python group with 11 updates in the / directory:
3.0.2
3.0.3
0.35.1
0.36.1
0.11.0
0.12.0
1.8.0
1.10.0
3.0.3
3.1.0
24.1.1
24.4.2
8.0.0
8.2.0
1.41.2
1.43.0
0.4.4
0.5.0
1.4.0
1.5.1
6.0.0
6.0.1
Updates
flask
from 3.0.2 to 3.0.3Release notes
Sourced from flask's releases.
Changelog
Sourced from flask's changelog.
Commits
c12a5d8
release version 3.0.35e22cc9
Don't set the cli attribute in the sansio scaffold (#5270)5fdce4c
Don't set the cli attribute in the sansio scaffoldadb7dd9
don't access app.logger when configuring app.loggerb739390
support FIPS builds without SHA-1 (#5460)db46111
access sha1 lazily7320e31
start version 3.0.387d5f5b
update project files (#5457)d5e321b
release version 3.0.2 (#5403)Updates
eventlet
from 0.35.1 to 0.36.1Changelog
Sourced from eventlet's changelog.
Commits
7eb208b
Update changelog for version 0.36.1 (#952)c0cb04d
fix: eventlet.websocket not always used from eventlet.wsgi (fixes #946) (#949)80f3936
[doc] clean remnant refs to the pyevent removed hub (#944)d396281
[trivial] linkage awesome-asyncio into our migration guide (#947)e1afe7b
Update changelog for version 0.36.0 (#941)3fcc9a5
Add asyncio API docs. (#939)1612191
Make sure asyncio hub doesn't use greendns for asyncio DNS APIs (#938)1c869fb
add a python doc link about to_thread (#937)520c6e2
Makeasyncio.to_thread()
work, with the same semantics as normal asyncio (#...48c259c
Refactor congruence checks based on assert at runtime (#932)Updates
paramdb
from 0.11.0 to 0.12.0Release notes
Sourced from paramdb's releases.
Changelog
Sourced from paramdb's changelog.
Commits
6430d81
Fix poetry.lock32fe840
Update READMEd94e452
Bump version from 0.11.0 to 0.12.0d7521b6
Merge pull request #185 from PainterQubits/develop4bbc5e4
Upgrade dependencies2e8915e
Merge pull request #183 from PainterQubits/#181-paramfile-and-paramdataframe2234115
#181 Update docsdcc79f2
#181 Update docs and fix Pylint errorbf3438c
#181 Update CHANGELOG684dd33
#181 Add tests for ParamFile and ParamDataFrameUpdates
mypy
from 1.8.0 to 1.10.0Changelog
Sourced from mypy's changelog.
... (truncated)
Commits
3faf0fc
Remove +dev for version for release 1.10a5998d2
Update CHANGELOG.md (#17159)62ea5b0
Various updates to changelog for 1.10 (#17158)2f0864c
Update CHANGELOG.md with draft for release 1.10 (#17150)e1443bb
fix: incorrect returned type of access descriptors on unions of types (#16604)5161ac2
Sync typeshed (#17124)e2fc1f2
Fix crash when expanding invalid Unpack in aCallable
alias (#17028)3ff6e47
Docs: docstrings in checker.py, ast_helpers.py (#16908)732d98e
Fix string formatting for string enums (#16555)8019010
Narrow individual items when matching a tuple to a sequence pattern (#16905)Updates
pylint
from 3.0.3 to 3.1.0Commits
053c2c3
Bump pylint to 3.1.0, update changelogc954636
Upgrade release documentation, and contributors.txt7300ed2
Discover.pyi
files (#9241)9dbf3df
Merge maintenance 3.0.x into main following 3.0.4 release (#9459)28e89b0
Remove changelog fragments pertaining to 3.0.44332ea1
Merge branch 'maintenance/3.0.x' into main following 3.0.4 release8115381
Bump pylint to 3.0.4, update changelog (#9458)4bf3524
[false-negative] Fix for consider-using-min/max-builtin (#9127)8c24b1e
[pre-commit.ci] pre-commit autoupdate (#9448)f499686
Update astroid version to 3.1.0 (#9457)Updates
black
from 24.1.1 to 24.4.2Release notes
Sourced from black's releases.
... (truncated)
Changelog
Sourced from black's changelog.
... (truncated)
Commits
3702ba2
Prepare release 24.4.2 (#4335)e4aaa8a
Fix incorrect f-string tokenization (#4332)ba88fc3
Simplify string tokenization regexes (#4331)5683242
New release templatee7fb048
Prepare release 24.4.1 (#4328)3f0f8f1
Support PEP 696 (#4327)2f88085
Github Action: Directly install from repo ifexport-subst
is skipped (#4313)12ce3db
Move changelog entry to right section (#4326)1354be2
Add support to style function definitions with newlines before function stubs...f4b644b
Prevent wrapping of multiline fstrings in parens (#4325)Updates
pytest
from 8.0.0 to 8.2.0Release notes
Sourced from pytest's releases.
... (truncated)
Commits
6bd3f31
Tweak changelog for 8.2.09b6219b
Prepare release version 8.2.0835765c
Merge pull request #12130 from bluetech/fixtures-inline7e7503c
unittest: report class cleanup exceptions (#12250)882c4da
fixtures: inlinefail_fixturefunc
2e8fb9f
fixtures: extract a_check_fixturedef
methodacf2971
fixtures: inline_getnextfixturedef
into_get_active_fixturedef
3c77aec
fixtures: move "request" check earlyd217d68
fixtures: inline_compute_fixture_value
530be28
fixtures: use early return in_get_active_fixturedef
Updates
playwright
from 1.41.2 to 1.43.0Release notes
Sourced from playwright's releases.
... (truncated)
Commits
d12ce3b
feat(roll): roll Playwright to v1.43 (#2395)d1e3f3c
build(deps): bump types-requests from 2.31.0.20240311 to 2.31.0.20240406 (#2396)b26b1f5
test: port test_launcher to sync test-suite (#2392)d796ac7
devops(conda): publish a single version per OS instead of each supported Pyth...ac6e957
fix(cli): don't show a stack trace when command + c of the CLI (#2390)66ddfee
devops: add osx-arm64 and linux-aarch64 conda package builds (#2211)6a10c42
build(deps): bump pillow from 10.2.0 to 10.3.0 (#2387)7e5f197
feat(roll): roll Playwright to 1.43.0-beta-1711484700000 (#2381)6a84c65
build(deps): bump flaky from 3.8.0 to 3.8.1 (#2377)963d16d
build(deps): bump setuptools from 69.1.1 to 69.2.0 (#2379)Updates
pytest-playwright
from 0.4.4 to 0.5.0Release notes
Sourced from pytest-playwright's releases.
Commits
6d624fc
devops: migrate publishing to ESRP (#226)74ade3e
fix: migrate artifacts_folder to session fixture (#223)40ba0da
fix: clean up videos after each test (#221)2d5a080
feat: support artifact collection with multiple contexts (#216)be0be7c
test: enhance test-artifact assertion utility (#218)3cec62e
fix: improve video naming (#217)1a54e22
devops: delete unused conda_build_config (#214)ac21122
devops: bump GitHub Action workflows (#215)ff4f8e9
chore(deps): bump black from 22.6.0 to 24.3.0 (#212)6f38e7c
chore(deps): bump django from 3.2.24 to 3.2.25 (#211)Updates
freezegun
from 1.4.0 to 1.5.1Changelog
Sourced from freezegun's changelog.
Commits
3f9fac4
Increase version numbere0f2c3c
CHANGELOG for 1.5.1ea054a3
Merge pull request #546 from robsdedude/patch-1df263dc
Extend type checkingaecc78a
Keepnumbers
for runtime type checks, usefloat
for type hints023c7a3
Revert runtime type-check tonumbers.Real
be779f4
Add test for manually ticking StepTickTimeFactoryd2872d0
Fix instance checksc963608
Fixtick
delta type handling17ea422
Admin: Release may not need to update version nrUpdates
sqlalchemy
from 2.0.26 to 2.0.30Release notes
Sourced from sqlalchemy's releases.
... (truncated)
Commits
Updates
astropy
from 6.0.0 to 6.0.1Release notes
Sourced from astropy's releases.
Commits
78cf534
Merge pull request #16230 from saimn/v6.0.1-changelogec14b3d
Merge pull request #16242 from meeseeksmachine/auto-backport-of-pr-16232-on-v...3171b1b
Backport PR #16232: DOC: add a note that wrapping Angle with integral dtypes ...ce2af5a
Add note about Numpy 2.09958151
Finalizing changelog for v6.0.1d38e7c8
Merge pull request #16231 from saimn/v6.0.1-pin-numpyfe95e69
Pin Numpy<2.0b56e304
Merge pull request #16233 from neutrinoceros/table/bug/hotfix_6.0.xa7c9d6f
BUG: hotfix compatibility with numpy 1.22 for astropy 6.0.xd756154
Merge pull request #15869 into v6.0.xDependabot 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