From: asimfarooq5 Date: Wed, 17 Aug 2022 13:36:09 +0000 (+0500) Subject: reformat X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8393%2Fhead;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git reformat --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index d7b280f2a3..16d7920a21 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1351,6 +1351,7 @@ from .types import CIDR as CIDR from .types import INET as INET from .types import INTERVAL as INTERVAL from .types import MACADDR as MACADDR +from .types import MACADDR8 as MACADDR8 from .types import MONEY as MONEY from .types import OID as OID from .types import PGBit as PGBit # noqa: F401 @@ -1358,6 +1359,7 @@ from .types import PGCidr as PGCidr # noqa: F401 from .types import PGInet as PGInet # noqa: F401 from .types import PGInterval as PGInterval # noqa: F401 from .types import PGMacAddr as PGMacAddr # noqa: F401 +from .types import PGMacAddr8 as PGMacAddr8 # noqa: F401 from .types import PGUuid as PGUuid from .types import REGCLASS as REGCLASS from .types import TIME as TIME @@ -1518,10 +1520,6 @@ colspecs = { } -class MACADDR8(MACADDR): - __visit_name__ = "MACADDR8" - - ischema_names = { "_array": _array.ARRAY, "hstore": _hstore.HSTORE, diff --git a/lib/sqlalchemy/dialects/postgresql/types.py b/lib/sqlalchemy/dialects/postgresql/types.py index 81b6771872..c65920b643 100644 --- a/lib/sqlalchemy/dialects/postgresql/types.py +++ b/lib/sqlalchemy/dialects/postgresql/types.py @@ -46,6 +46,13 @@ class MACADDR(sqltypes.TypeEngine[str]): PGMacAddr = MACADDR +class MACADDR8(MACADDR): + __visit_name__ = "MACADDR8" + + +PGMacAddr8 = MACADDR8 + + class MONEY(sqltypes.TypeEngine[str]): r"""Provide the PostgreSQL MONEY type.