From e73bc176fd892a818deda18d3cb73e15e96982c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Oct 2025 03:07:13 +0000 Subject: [PATCH 1/2] Bump the pip group with 6 updates Bumps the pip group with 6 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.10.0` | `4.11.0` | | [faker](https://github.com/joke2k/faker) | `37.6.0` | `37.8.0` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.138.15` | `6.140.2` | | [mypy](https://github.com/python/mypy) | `1.17.1` | `1.18.2` | | [pytest-cov](https://github.com/pytest-dev/pytest-cov) | `6.3.0` | `7.0.0` | | [ruff](https://github.com/astral-sh/ruff) | `0.12.12` | `0.13.2` | Updates `anyio` from 4.10.0 to 4.11.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.10.0...4.11.0) Updates `faker` from 37.6.0 to 37.8.0 - [Release notes](https://github.com/joke2k/faker/releases) - [Changelog](https://github.com/joke2k/faker/blob/master/CHANGELOG.md) - [Commits](https://github.com/joke2k/faker/compare/v37.6.0...v37.8.0) Updates `hypothesis` from 6.138.15 to 6.140.2 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.138.15...hypothesis-python-6.140.2) Updates `mypy` from 1.17.1 to 1.18.2 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.17.1...v1.18.2) Updates `pytest-cov` from 6.3.0 to 7.0.0 - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v6.3.0...v7.0.0) Updates `ruff` from 0.12.12 to 0.13.2 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.12.12...0.13.2) --- updated-dependencies: - dependency-name: anyio dependency-version: 4.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: faker dependency-version: 37.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: hypothesis dependency-version: 6.140.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: mypy dependency-version: 1.18.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip - dependency-name: pytest-cov dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: pip - dependency-name: ruff dependency-version: 0.13.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip ... Signed-off-by: dependabot[bot] --- pyproject.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 44bf75c..ab84fe0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,15 +5,15 @@ version = "0" [dependency-groups] dev = [ - "anyio==4.10.0", - "faker==37.6.0", - "hypothesis==6.138.15", - "mypy==1.17.1", + "anyio==4.11.0", + "faker==37.8.0", + "hypothesis==6.140.2", + "mypy==1.18.2", "polyfactory==2.22.2", "pytest==8.4.2", - "pytest-cov==6.3.0", + "pytest-cov==7.0.0", "pytest-rerunfailures==16.0.1", - "ruff==0.12.12", + "ruff==0.13.2", "uvloop==0.21.0", ] From 2c87aeb876f10d0766370ce7a11052b0bdd03bfd Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Fri, 3 Oct 2025 00:34:01 +0300 Subject: [PATCH 2/2] Update --- .../test_stompman/test_frame_serde.py | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/stompman/test_stompman/test_frame_serde.py b/packages/stompman/test_stompman/test_frame_serde.py index 392d993..64a3e9a 100644 --- a/packages/stompman/test_stompman/test_frame_serde.py +++ b/packages/stompman/test_stompman/test_frame_serde.py @@ -41,12 +41,12 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: # Partial packet ( b"CONNECT\naccept-version:1.0\n\n\x00", - [ConnectFrame(headers={"accept-version": "1.0"})], + [ConnectFrame(headers={"accept-version": "1.0"})], # type: ignore[typeddict-item] ), # Full packet ( b"MESSAGE\naccept-version:1.0\n\nHey dude\x00", - [MessageFrame(headers={"accept-version": "1.0"}, body=b"Hey dude")], + [MessageFrame(headers={"accept-version": "1.0"}, body=b"Hey dude")], # type: ignore[typeddict-item] ), # Long packet ( @@ -85,7 +85,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ), [ MessageFrame( - headers={ + headers={ # type: ignore[typeddict-unknown-key] "content-length": "14", "expires": "0", "destination": "/topic/xxxxxxxxxxxxxxxxxxxxxxxxxl", @@ -100,7 +100,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ), HeartbeatFrame(), MessageFrame( - headers={ + headers={ # type: ignore[typeddict-unknown-key] "content-length": "12", "expires": "0", "destination": "/topic/xxxxxxxxxxxxxxxxxxxxxxxxxx", @@ -115,7 +115,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ), HeartbeatFrame(), MessageFrame( - headers={ + headers={ # type: ignore[typeddict-unknown-key] "content-length": "11", "expires": "0", "destination": "/topic/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", @@ -130,7 +130,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ), HeartbeatFrame(), MessageFrame( - headers={ + headers={ # type: ignore[typeddict-unknown-key] "content-length": "14", "expires": "0", "destination": "/topic/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", @@ -145,7 +145,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ), HeartbeatFrame(), MessageFrame( - headers={ + headers={ # type: ignore[typeddict-unknown-key] "content-length": "12", "expires": "0", "destination": "/topic/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", @@ -165,7 +165,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ( b"CONNECT\naccept-version:1.0\n\n\x00\nCONNECTED\nversion:1.0\n\n\x00\n", [ - ConnectFrame(headers={"accept-version": "1.0"}), + ConnectFrame(headers={"accept-version": "1.0"}), # type: ignore[typeddict-item] HeartbeatFrame(), ConnectedFrame(headers={"version": "1.0"}), HeartbeatFrame(), @@ -175,9 +175,9 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: ( b"CONNECTED\naccept-version:1.0\n\n\x00\nERROR\nheader:1.0\n\n\xc3\xa7\x00\n", [ - ConnectedFrame(headers={"accept-version": "1.0"}), + ConnectedFrame(headers={"accept-version": "1.0"}), # type: ignore[typeddict-item] HeartbeatFrame(), - ErrorFrame(headers={"header": "1.0"}, body="ç".encode()), + ErrorFrame(headers={"header": "1.0"}, body="ç".encode()), # type: ignore[typeddict-item] HeartbeatFrame(), ], ), @@ -185,24 +185,24 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: # Two headers: only first should be accepted ( b"CONNECTED\naccept-version:1.0\naccept-version:1.1\n\n\x00", - [ConnectedFrame(headers={"accept-version": "1.0"})], + [ConnectedFrame(headers={"accept-version": "1.0"})], # type: ignore[typeddict-item] ), # no end of line after command (b"CONNECTED", []), (b"CONNECTED\n", []), (b"CONNECTED\x00", []), # \r\n after command - (b"CONNECTED\r\n\n\n\x00", [ConnectedFrame(headers={})]), - (b"CONNECTED\r\nheader:1.0\n\n\x00", [ConnectedFrame(headers={"header": "1.0"})]), + (b"CONNECTED\r\n\n\n\x00", [ConnectedFrame(headers={})]), # type: ignore[typeddict-item] + (b"CONNECTED\r\nheader:1.0\n\n\x00", [ConnectedFrame(headers={"header": "1.0"})]), # type: ignore[typeddict-item] # header without : - (b"CONNECTED\nhead\nheader:1.1\n\n\x00", [ConnectedFrame(headers={"header": "1.1"})]), + (b"CONNECTED\nhead\nheader:1.1\n\n\x00", [ConnectedFrame(headers={"header": "1.1"})]), # type: ignore[typeddict-item] # empty header : ( b"CONNECTED\nhead:\nheader:1.1\n\n\x00", - [ConnectedFrame(headers={"head": "", "header": "1.1"})], + [ConnectedFrame(headers={"head": "", "header": "1.1"})], # type: ignore[typeddict-item] ), # header value with : - (b"CONNECTED\nheader:what:?\n\n\x00", [ConnectedFrame(headers={})]), + (b"CONNECTED\nheader:what:?\n\n\x00", [ConnectedFrame(headers={})]), # type: ignore[typeddict-item] # no NULL (b"CONNECTED\nheader:what:?\n\nhello", []), # header never end @@ -217,20 +217,20 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: b"whatever\nWHATEVER\nheader:1.1\n\n\x00CONNECTED\nheader:1.1\n\n\x00\nwhatever\nCONNECTED\nheader:1.2\n\n\x00", [ HeartbeatFrame(), - ConnectedFrame(headers={"header": "1.1"}), + ConnectedFrame(headers={"header": "1.1"}), # type: ignore[typeddict-item] HeartbeatFrame(), - ConnectedFrame(headers={"header": "1.2"}), + ConnectedFrame(headers={"header": "1.2"}), # type: ignore[typeddict-item] ], ), # Correct content-length with body containing NULL byte ( b"MESSAGE\ncontent-length:5\n\nBod\x00y\x00", - [MessageFrame(headers={"content-length": "5"}, body=b"Bod\x00y")], + [MessageFrame(headers={"content-length": "5"}, body=b"Bod\x00y")], # type: ignore[typeddict-item] ), # Content-length shorter than actual body (should only read up to content-length) ( b"MESSAGE\ncontent-length:4\n\nBody\x00 with extra\x00\n", - [MessageFrame(headers={"content-length": "4"}, body=b"Body"), HeartbeatFrame()], + [MessageFrame(headers={"content-length": "4"}, body=b"Body"), HeartbeatFrame()], # type: ignore[typeddict-item] ), # Content-length longer than actual body (should wait for more data) ( @@ -240,7 +240,7 @@ def test_dump_frame(frame: AnyClientFrame, dumped_frame: bytes) -> None: # Content-length longer than actual body, then more data comes with NULL terminator ( b"MESSAGE\ncontent-length:10\n\nShortMOREDATA\x00", - [MessageFrame(headers={"content-length": "10"}, body=b"ShortMORED")], + [MessageFrame(headers={"content-length": "10"}, body=b"ShortMORED")], # type: ignore[typeddict-item] ), ], )