summaryrefslogtreecommitdiff
path: root/tools/generate_sql_functions.py
Commit message (Collapse)AuthorAgeFilesLines
* Add missing overload to NumericFederico Caselli2023-03-031-13/+1
| | | | | | | | | | | | 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
* generate stubs for func known functionsMike Bayer2023-01-231-0/+160
Added typing for the built-in generic functions that are available from the :data:`_sql.func` namespace, which accept a particular set of arguments and return a particular type, such as for :class:`_sql.count`, :class:`_sql.current_timestamp`, etc. Fixes: #9129 Change-Id: I1a2e0dcca3048c77e84dc786843a7df05c457dfa