File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1089,7 +1089,7 @@ def get_signature(
10891089 Dict[str, Any]
10901090
10911091 '''
1092- signature = inspect .signature (func , eval_str = True )
1092+ signature = inspect .signature (func )
10931093 args : List [Dict [str , Any ]] = []
10941094 returns : List [Dict [str , Any ]] = []
10951095
@@ -1106,6 +1106,8 @@ def get_signature(
11061106 elif p .kind == inspect .Parameter .VAR_KEYWORD :
11071107 raise TypeError ('variable keyword arguments are not supported' )
11081108
1109+ # TODO: Use typing.get_type_hints() for parameters / return values?
1110+
11091111 # Generate the parameter type and the corresponding SQL code for that parameter
11101112 args_schema = []
11111113 args_data_formats = []
Original file line number Diff line number Diff line change 44from typing import TypeVar
55
66try :
7- from typing import TypeVarTuple
8- from typing import Unpack
7+ from typing import TypeVarTuple # type: ignore
8+ from typing import Unpack # type: ignore
99except ImportError :
1010 # Python 3.8 and earlier do not have TypeVarTuple
1111 from typing_extensions import TypeVarTuple # type: ignore
@@ -37,5 +37,5 @@ def __new__(cls, *args: T) -> 'Masked[T]':
3737class Table (Tuple [Unpack [Ts ]]):
3838 """Return type for a table valued function."""
3939
40- def __new__ (cls , * args : Unpack [Ts ]) -> 'Table[Unpack[Ts]]' :
40+ def __new__ (cls , * args : Unpack [Ts ]) -> 'Table[Tuple[ Unpack[Ts] ]]' :
4141 return tuple .__new__ (cls , args ) # type: ignore
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
1+ # from __future__ import annotations
32import unittest
43from typing import Any
54from typing import Callable
You can’t perform that action at this time.
0 commit comments