Page MenuHomeSoftware Heritage

D7641.diff
No OneTemporary

D7641.diff

diff --git a/swh/core/db/tests/test_db.py b/swh/core/db/tests/test_db.py
--- a/swh/core/db/tests/test_db.py
+++ b/swh/core/db/tests/test_db.py
@@ -182,7 +182,7 @@
TestIntEnum.foo,
strategies.sampled_from(TestIntEnum),
in_wrapper=int,
- out_converter=TestIntEnum,
+ out_converter=lambda x: TestIntEnum(x), # lambda needed by mypy
),
Field("uuid", "uuid", uuid.uuid4(), strategies.uuids()),
Field(
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -46,7 +46,7 @@
db
http
deps =
- mypy==0.920
+ mypy==0.942
commands =
mypy swh

File Metadata

Mime Type
text/plain
Expires
Dec 21 2024, 10:56 AM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223760

Event Timeline