From: Daniele Varrazzo Date: Sun, 22 Nov 2020 17:44:20 +0000 (+0000) Subject: Merge branch 'c-dumpers' X-Git-Tag: 3.0.dev0~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b080233d141a8b8d8686372a3b2f6855b3d68bb5;p=thirdparty%2Fpsycopg.git Merge branch 'c-dumpers' --- b080233d141a8b8d8686372a3b2f6855b3d68bb5 diff --cc psycopg3/psycopg3/__init__.py index c10859f52,f0c8a121d..05674fbcd --- a/psycopg3/psycopg3/__init__.py +++ b/psycopg3/psycopg3/__init__.py @@@ -33,22 -33,4 +33,22 @@@ paramstyle = "pyformat if pq.__impl__ == "c": from psycopg3_c import _psycopg3 - _psycopg3.register_builtin_c_loaders() + _psycopg3.register_builtin_c_adapters() + + +# Note: defining the exported methods helps both Sphynx in documenting that +# this is the canonical place to obtain them and should be used by MyPy too, +# so that function signatures are consistent with the documentation. +__all__ = [ + "AsyncConnection", + "AsyncCopy", + "AsyncCursor", + "AsyncTransaction", + "Column", + "Connection", + "Copy", + "Cursor", + "Notify", + "Rollback", + "Transaction", +]