File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ from typing import Sequence
10
10
from typing import Tuple
11
11
from typing import Type
12
12
from typing import TypeVar
13
+ from typing import Union
13
14
from typing import ValuesView
14
15
15
16
from .result import ResultMetaData
16
17
from .result import RMKeyView
18
+ from ..sql .schema import Column
17
19
18
20
_T = TypeVar ("_T" )
19
21
@@ -80,8 +82,8 @@ class ROMappingView( # type: ignore[misc]
80
82
def __eq__ (self , other : Any ) -> bool : ...
81
83
def __ne__ (self , other : Any ) -> bool : ...
82
84
83
- class RowMapping (BaseRow , Mapping [str , Any ]):
84
- def __getitem__ (self , key : str ) -> Any : ...
85
+ class RowMapping (BaseRow , Mapping [Union [ str , Column [ Any ]] , Any ]):
86
+ def __getitem__ (self , key : Union [ str , Column [ Any ]] ) -> Any : ...
85
87
def __iter__ (self ) -> Iterator [str ]: ...
86
88
def __len__ (self ) -> int : ...
87
89
def __contains__ (self , key : Any ) -> bool : ...
You can’t perform that action at this time.
0 commit comments