From: Mike Bayer Date: Tue, 24 Oct 2023 20:05:48 +0000 (-0400) Subject: remove type check decorators X-Git-Tag: rel_2_0_23~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=523285d679fb6b456fd6cfbeeed97644b8cd2ade;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git remove type check decorators in 598ae1d120a35ee9e19cf7f953c7dd51047954d6, we erroneously merged "no_type_check" decorators. we only merge typing that works or requires "type: ignore", so remove these Fixes: #9737 Change-Id: I0fdd2022df9b7b59482581957b77057094475647 --- diff --git a/lib/sqlalchemy/dialects/oracle/types.py b/lib/sqlalchemy/dialects/oracle/types.py index 592ce70672..4f82c43c69 100644 --- a/lib/sqlalchemy/dialects/oracle/types.py +++ b/lib/sqlalchemy/dialects/oracle/types.py @@ -7,7 +7,6 @@ from __future__ import annotations import datetime as dt -from typing import no_type_check from typing import Optional from typing import Type from typing import TYPE_CHECKING @@ -236,7 +235,6 @@ class INTERVAL(sqltypes.NativeForEmulated, sqltypes._AbstractInterval): def python_type(self) -> Type[dt.timedelta]: return dt.timedelta - @no_type_check def literal_processor( self, dialect: Dialect ) -> Optional[_LiteralProcessorType[dt.timedelta]]: diff --git a/lib/sqlalchemy/dialects/postgresql/types.py b/lib/sqlalchemy/dialects/postgresql/types.py index 61116aa43d..2cac5d816d 100644 --- a/lib/sqlalchemy/dialects/postgresql/types.py +++ b/lib/sqlalchemy/dialects/postgresql/types.py @@ -7,7 +7,6 @@ from __future__ import annotations import datetime as dt from typing import Any -from typing import no_type_check from typing import Optional from typing import overload from typing import Type @@ -250,7 +249,6 @@ class INTERVAL(type_api.NativeForEmulated, sqltypes._AbstractInterval): def python_type(self) -> Type[dt.timedelta]: return dt.timedelta - @no_type_check def literal_processor( self, dialect: Dialect ) -> Optional[_LiteralProcessorType[dt.timedelta]]: