]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Re-export names from psycopg3.types 44/head
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 7 Apr 2021 14:08:04 +0000 (16:08 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 8 Apr 2021 13:59:05 +0000 (15:59 +0200)
commit45db720e548994f84ad915c7c8a4efed0dec8494
tree3a5122442a44c63f19fa12ff5a34d195cdb49f83
parent6b384ed9f642d435168846423915558baeab2114
Re-export names from psycopg3.types

This is useful to silent mypy errors when implicit reexport is disabled
(e.g. in strict mode) like:

    error: Module 'psycopg3.types' does not explicitly export attribute
    'Jsonb'; implicit reexport disabled  [attr-defined]

https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport

Accordingly, we import Int4 from psycopg3.types directly in
test_copy.py.
psycopg3/psycopg3/types/__init__.py
tests/test_copy.py