File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 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
1010from typing import Tuple
1111from typing import Type
1212from typing import TypeVar
13+ from typing import Union
1314from typing import ValuesView
1415
1516from .result import ResultMetaData
1617from .result import RMKeyView
18+ from ..sql .schema import Column
1719
1820_T = TypeVar ("_T" )
1921
@@ -80,8 +82,8 @@ class ROMappingView( # type: ignore[misc]
8082 def __eq__ (self , other : Any ) -> bool : ...
8183 def __ne__ (self , other : Any ) -> bool : ...
8284
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 : ...
8587 def __iter__ (self ) -> Iterator [str ]: ...
8688 def __len__ (self ) -> int : ...
8789 def __contains__ (self , key : Any ) -> bool : ...
You can’t perform that action at this time.
0 commit comments