Skip to content

Commit fe18dc5

Browse files
authored
Merge pull request #1667 from minrk/deprecate-strtypes
deprecate utils.strtypes
2 parents dfa8dc1 + 0c2772c commit fe18dc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+151
-267
lines changed

.flake8

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[flake8]
22
exclude = .git,dist,docs,zmq/eventloop/minitornado,buildutils/templates
3-
ignore = E, F401, F403, F811, F841, W
3+
ignore = E, F403, F811, F841, W
4+
5+
per-file-ignores =
6+
**/__init__.py:F401

buildutils/build_cffi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
import os
3-
import sys
43

54
import cffi
65

buildutils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from configparser import ConfigParser
1818

1919
pjoin = os.path.join
20-
from .msg import debug, fatal, warn
20+
from .msg import debug, warn
2121

2222
# -----------------------------------------------------------------------------
2323
# Utility functions (adapted from h5py: https://www.h5py.org/)

buildutils/detect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# the file COPYING.BSD, distributed as part of this software.
1212
# -----------------------------------------------------------------------------
1313

14-
import copy
1514
import logging
1615
import os
1716
import platform

docs/source/changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@ Changes:
1616
is not a valid check for the presence of a feature.
1717
This practice has never been robust, but it may have worked sometimes.
1818
Use direct checks via e.g. {func}`zmq.has` or {func}`zmq.zmq_version_info`.
19+
- A bit more type coverage of Context.term and Context.socket
1920

2021
Compatibility fixes:
2122

2223
- Remove all use of deprecated stdlib distutils
24+
- Update to Cython 0.29.28 (required for Python 3.11 compatibility)
25+
- Compatibility with Python 3.11.0a5
26+
27+
Maintenance changes:
28+
29+
- Switch to myst for docs
30+
- Deprecate `zmq.utils.strtypes`, now unused
31+
- Updates to autoformatting, linting
2332

2433
## 22.3.0
2534

examples/eventloop/asyncweb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import threading
1515
import time
1616

17-
from tornado import gen, ioloop, web
17+
from tornado import ioloop, web
1818

1919
import zmq
2020
from zmq.eventloop.future import Context as FutureContext

examples/mongodb/controller.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# -----------------------------------------------------------------------------
77

88
import json
9-
import sys
109
from typing import Any, Dict, Optional, Union
1110

1211
import pymongo

examples/pubsub/publisher.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# -----------------------------------------------------------------------------
1212

1313
import sys
14-
import time
1514

1615
import numpy
1716

examples/pubsub/subscriber.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
import sys
1515
import time
1616

17-
import numpy
18-
1917
import zmq
2018

2119

examples/pubsub/topics_sub.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
# -----------------------------------------------------------------------------
1919

2020
import sys
21-
import time
22-
23-
import numpy
2421

2522
import zmq
2623

0 commit comments

Comments
 (0)