From db0e4133768230e490956b0c4be147323e747cb8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 14:39:03 +0000 Subject: [PATCH] chore(deps): Update black requirement from ~=21.12b0 to ~=22.1 in /packages/@jsii/python-runtime (#3357) Updates the requirements on [black](https://github.com/psf/black) to permit the latest version.
Release notes

Sourced from black's releases.

22.1.0

At long last, Black is no longer a beta product! This is the first non-beta release and the first release covered by our new stability policy.

Highlights

Style

Parser

Performance

Configuration

Output

Packaging

... (truncated)

Changelog

Sourced from black's changelog.

22.1.0

At long last, Black is no longer a beta product! This is the first non-beta release and the first release covered by our new stability policy.

Highlights

Style

Parser

Performance

... (truncated)

Commits

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-automerge-start) Dependabot will merge this PR once CI passes on it, as requested by @aws-cdk-automation. [//]: # (dependabot-automerge-end) ---
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 ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--- packages/@jsii/python-runtime/requirements.txt | 2 +- packages/@jsii/python-runtime/tests/test_compliance.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@jsii/python-runtime/requirements.txt b/packages/@jsii/python-runtime/requirements.txt index 6b88a199d4..3c8494a316 100644 --- a/packages/@jsii/python-runtime/requirements.txt +++ b/packages/@jsii/python-runtime/requirements.txt @@ -1,4 +1,4 @@ -black~=21.12b0 +black~=22.1 mypy==0.812 pip~=21.3 ; python_version < '3.7' pip~=22.0 ; python_version >= '3.7' diff --git a/packages/@jsii/python-runtime/tests/test_compliance.py b/packages/@jsii/python-runtime/tests/test_compliance.py index 28f2ddf590..df52bfbe58 100644 --- a/packages/@jsii/python-runtime/tests/test_compliance.py +++ b/packages/@jsii/python-runtime/tests/test_compliance.py @@ -338,7 +338,7 @@ def test_getSetPrimitiveProperties(): assert number.double_value == 40 assert Negate(Add(Number(20), Number(10))).value == -30 assert Multiply(Add(Number(5), Number(5)), Number(2)).value == 20 - assert Power(Number(3), Number(4)).value == 3 ** 4 + assert Power(Number(3), Number(4)).value == 3**4 assert Power(Number(999), Number(1)).value == 999 assert Power(Number(999), Number(0)).value == 1 @@ -353,7 +353,7 @@ def test_callMethods(): assert calc.value == 20 calc.pow(5) - assert calc.value == 20 ** 5 + assert calc.value == 20**5 calc.neg() assert calc.value == -3_200_000 @@ -451,7 +451,7 @@ def test_unionProperties(): calc3.union_property = Power(Number(10), Number(3)) assert isinstance(calc3.union_property, Power) - assert calc3.read_union_value() == 10 ** 3 + assert calc3.read_union_value() == 10**3 def test_subclassing():