summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml5
-rw-r--r--python/arti_rpc/src/arti_rpc/ffi.py10
2 files changed, 9 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 22de3f0b8..ff7bfd2d1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -83,10 +83,13 @@ python3-checks:
# AFAICT these python packages do not have debian packages.
#
# (`black` does have a debian package, but we need the latest version.)
+ #
+ # (NOTE: We have specific versions of some tools pinned here to avoid
+ # breakage; we should update them periodically.)
- |
python3 -m venv lint
source lint/bin/activate
- pip3 install marko tomli_w types-toml types-PyYAML types-beautifulsoup4 types-requests black flake8 mypy
+ pip3 install marko tomli_w types-toml types-PyYAML types-beautifulsoup4 types-requests black==24.4.2 flake8==6.1.0 mypy==1.14.0
./maint/python-lints
maint-checks:
diff --git a/python/arti_rpc/src/arti_rpc/ffi.py b/python/arti_rpc/src/arti_rpc/ffi.py
index 7431439c7..4c0317278 100644
--- a/python/arti_rpc/src/arti_rpc/ffi.py
+++ b/python/arti_rpc/src/arti_rpc/ffi.py
@@ -28,31 +28,31 @@ import sys
class ArtiRpcStr(Structure):
"""FFI type: String returned by the RPC protocol."""
- _fields_: list = []
+ _fields_ = []
class ArtiRpcConnBuilder(Structure):
"""FFI type: Builder for constructing RPC connections."""
- _fields_: list = []
+ _fields_ = []
class ArtiRpcConn(Structure):
"""FFI type: Connection to Arti via the RPC protocol."""
- _fields_: list = []
+ _fields_ = []
class ArtiRpcError(Structure):
"""FFI type: Error from the RPC library."""
- _fields_: list = []
+ _fields_ = []
class ArtiRpcHandle(Structure):
"""FFI type: Handle to an open RPC request."""
- _fields_: list = []
+ _fields_ = []
ArtiRpcResponseType = c_int