Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:

# autoformat and lint Python code
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
rev: v0.12.2
hooks:
- id: ruff
types_or:
Expand All @@ -43,7 +43,7 @@ repos:
exclude: zmq/constants.py

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
rev: v1.16.1
hooks:
- id: mypy
files: zmq/.*
Expand Down
8 changes: 3 additions & 5 deletions examples/recv_into/recv_into_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ def main() -> None:
B = np.empty_like(A)
assert not (A == B).all()

with (
zmq.Context() as ctx,
ctx.socket(zmq.PUSH) as push,
ctx.socket(zmq.PULL) as pull,
):
with zmq.Context() as ctx, ctx.socket(zmq.PUSH) as push, ctx.socket(
zmq.PULL
) as pull:
push.bind(url)
pull.connect(url)
print("sending:\n", A)
Expand Down
Loading