]> 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>
Thu, 9 Jan 2025 13:43:57 +0000 (14:43 +0100)
commitec390c648b9b198d31b897e53f871c7470d2de5f
tree62500984d21f259a5381604685e2790023acec8b
parent987b80d2e4f6300cacf300933349c9bc7c2e6498
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