@@ -78,7 +78,8 @@ class SmallInteger(Integer):
78
78
class BigInteger (Integer ):
79
79
__visit_name__ : str = ...
80
80
81
- class Numeric (_LookupExpressionAdapter , TypeEngine [float ]): # TODO: this can be also decimal.Decimal
81
+ # TODO: This can also be float (however, decimal is the default)
82
+ class Numeric (_LookupExpressionAdapter , TypeEngine [decimal .Decimal ]):
82
83
__visit_name__ : str = ...
83
84
precision : Optional [int ] = ...
84
85
scale : Optional [int ] = ...
@@ -90,7 +91,7 @@ class Numeric(_LookupExpressionAdapter, TypeEngine[float]): # TODO: this can be
90
91
def literal_processor (self , dialect : Dialect ) -> Callable [[Union [float , decimal .Decimal ]], str ]: ...
91
92
@property
92
93
def python_type (self ) -> Union [Type [float ], Type [decimal .Decimal ]]: ... # type: ignore # return type incompatible
93
- def bind_processor (self , dialect : Dialect ) -> Optional [Callable [[Optional [str ]], float ]]: ...
94
+ def bind_processor (self , dialect : Dialect ) -> Optional [Callable [[Optional [str ]], decimal . Decimal ]]: ...
94
95
def result_processor (self , dialect : Dialect , coltype : Any ) -> Optional [Callable [[Optional [Any ]],
95
96
Optional [Union [float , decimal .Decimal ]]]]: ...
96
97
0 commit comments