Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124426
D7641.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
609 B
Subscribers
None
D7641.diff
View Options
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
Details
Attached
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
Attached To
D7641: Upgrade mypy to 0.942 to fix support of types-psycopg2 >= 2.9.12
Event Timeline
Log In to Comment