]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove type check decorators
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2023 20:05:48 +0000 (16:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2023 20:05:48 +0000 (16:05 -0400)
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

lib/sqlalchemy/dialects/oracle/types.py
lib/sqlalchemy/dialects/postgresql/types.py

index 592ce7067250c263ca1d4fc824fcfa61a395fbcc..4f82c43c6992729339eb04f7a08b2b07b6b96f23 100644 (file)
@@ -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]]:
index 61116aa43d6d33c8a53c0e5726144b62d8a31d80..2cac5d816dd75fb35eefb4d392d279d63bee370d 100644 (file)
@@ -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]]: