Fix errors reported by mypy

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-04-29 11:54:56 +02:00
commit 20f713e6f7
3 changed files with 15 additions and 13 deletions

View file

@ -32,7 +32,7 @@ class QueryResult(abc.ABC): # export
return self.__query
@property
def session(self) -> DataBase:
def session(self) -> Session:
return self.__session
@property
@ -58,5 +58,5 @@ class QueryResult(abc.ABC): # export
# -- pure virtuals
@abc.abstractmethod
def _cast(self, session: Session, res_type: ResType, **kwargs) -> Union[Any|list[Any]]:
def _cast(self, res_type: ResType, **kwargs) -> Union[Any|list[Any]]:
pass