HomeSoftware Heritage

Upgrade mypy to 0.942 to fix support of types-psycopg2 >= 2.9.12

Description

Upgrade mypy to 0.942 to fix support of types-psycopg2 >= 2.9.12

types-psycopg2 2.9.12 contains this commit:
https://github.com/python/typeshed/commit/506be4fb0adcf38af77325258af337772abcde77

which removes Any as the return type of the last variant, allowing
mypy to type-check the returned value.
However, mypy 0.920 only considers the last variant, even though we use
the first one; causing the return type to be badly inferred, and
erroring every time we use it as context manager.

Details

Provenance
vlorentzAuthored on Apr 25 2022, 1:23 PM
vlorentzPushed on Apr 25 2022, 1:32 PM
Differential Revision
D7641: Upgrade mypy to 0.942 to fix support of types-psycopg2 >= 2.9.12
Parents
rDCORE96068fd53dad: pre-commit: Remove codespell commit-msg hook
Branches
Unknown
Tags
Unknown
References
tag: v2.5.0
Build Status
Buildable 28716
Build 44872: test-and-buildJenkins console · Jenkins