]> git.ipfire.org Git - thirdparty/psycopg.git/commit
lint: add typing annotations to pass pre-commit
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 27 Dec 2024 02:30:28 +0000 (03:30 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 27 Dec 2024 03:42:00 +0000 (04:42 +0100)
commit137b51f85cd95d796d242541921fc057e181e19f
tree1c7ea0ead7e78ab95c076a87261329cfe7a7b4f1
parent0711adf00aca6c99f1dcb1961e6eed6f3f9b3bb8
lint: add typing annotations to pass pre-commit

Pre-commit seems to run mypy in parallel batches, each with about 20
files. In this mode, certain tests that pass when running mypy all in
once or file-by-file, fail.

In the current state, both running mypy without arguments or running it
in pre-commit seem to work.
.pre-commit-config.yaml
psycopg/psycopg/_cmodule.py
psycopg/psycopg/_connection_base.py
psycopg/psycopg/_copy_base.py
psycopg/psycopg/_cursor_base.py
pyproject.toml
tests/scripts/pipeline-demo.py
tests/test_adapt.py
tests/types/test_array.py