From: Denis Laxalde Date: Thu, 28 Oct 2021 09:31:25 +0000 (+0200) Subject: Re-export DB-API type constructors and singletons X-Git-Tag: 3.0.2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=609997a044a4b354ec8d454ab99bb8636467f8e2;p=thirdparty%2Fpsycopg.git Re-export DB-API type constructors and singletons Following https://www.python.org/dev/peps/pep-0249/#type-objects-and-constructors --- diff --git a/psycopg/psycopg/__init__.py b/psycopg/psycopg/__init__.py index c1c1dc6eb..40e73eb0a 100644 --- a/psycopg/psycopg/__init__.py +++ b/psycopg/psycopg/__init__.py @@ -88,4 +88,17 @@ __all__ = [ "InternalError", "ProgrammingError", "NotSupportedError", + # DBAPI type constructors and singletons + "Date", + "Time", + "Timestamp", + "DateFromTicks", + "TimeFromTicks", + "TimestampFromTicks", + "Binary", + "STRING", + "BINARY", + "NUMBER", + "DATETIME", + "ROWID", ]