]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Modules import to register builtin types moved to types package
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 2 Apr 2020 04:44:44 +0000 (17:44 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 2 Apr 2020 04:44:44 +0000 (17:44 +1300)
psycopg3/__init__.py
psycopg3/types/__init__.py

index 839729fabc53f11df2b6cee81b69f98db65fe005..291c32519f414c04bb5ac6202dcf7ecb7fbe5278 100644 (file)
@@ -21,8 +21,7 @@ from .errors import (
 )
 
 # register default adapters
-from .types import numeric  # noqa
-from .types import text  # noqa
+from . import types  # noqa
 
 
 # DBAPI compliancy
index 7431526623b78c5ce15ed1b8ae31a93b98506181..c988c0fdb0cd1863b4a85d3e40efdcc052d72b3a 100644 (file)
@@ -7,4 +7,7 @@ psycopg3 types package
 
 from .oids import type_oid
 
+# Register default adapters
+from . import numeric, text  # noqa
+
 __all__ = ["type_oid"]