From 609997a044a4b354ec8d454ab99bb8636467f8e2 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Thu, 28 Oct 2021 11:31:25 +0200 Subject: [PATCH] Re-export DB-API type constructors and singletons Following https://www.python.org/dev/peps/pep-0249/#type-objects-and-constructors --- psycopg/psycopg/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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", ] -- 2.47.2