mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 18:03:31 +01:00
Fix errors reported by mypy
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6835a569a5
commit
20f713e6f7
3 changed files with 15 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue