]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add missing overload to Numeric
authorFederico Caselli <cfederico87@gmail.com>
Tue, 28 Feb 2023 21:44:27 +0000 (22:44 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Mar 2023 15:40:17 +0000 (10:40 -0500)
commitc39dc697c1598c4a6a934dc0b5a60a0eaae6555d
tree919992761ed4cc8c926da23617d3671b536022f5
parentda70478eb2eafe9c76b836217371e029c3c820e3
Add missing overload to Numeric

Added missing init overload to :class:`_sql.Numeric` to allow
type checkers to properly resolve the type var given the
``asdecimal`` parameter.

this fortunately fixes a glitch in the generate_sql_functions script
also

Fixes: #9391
Change-Id: I9cecc40c52711489e9dbe663f110c3b81c7285e4
doc/build/changelog/unreleased_20/9391.rst [new file with mode: 0644]
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/sql/sqltypes.py
test/ext/mypy/plain_files/functions.py
test/ext/mypy/plain_files/sqltypes.py [new file with mode: 0644]
tools/generate_sql_functions.py