Skip to content

Commit 294f26a

Browse files
committed
RDBC-739 LoaderWithInclude.load should return typed result
1 parent 86f3374 commit 294f26a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ravendb/documents/session/loaders/loaders.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def include(self, path: str) -> LoaderWithInclude:
1616
pass
1717

1818
@abstractmethod
19-
def load(self, object_type: type, *ids: str) -> Dict[str, object]:
19+
def load(self, object_type: _T, *ids: str) -> _T:
2020
pass
2121

2222

@@ -29,7 +29,7 @@ def include(self, path: str) -> LoaderWithInclude:
2929
self.__includes.append(path)
3030
return self
3131

32-
def load(self, object_type: Type[_T], *ids: str) -> Dict[str, object]:
32+
def load(self, object_type: Type[_T], *ids: str) -> Dict[str, _T]:
3333
return self.__session._load_internal(object_type, list(ids), self.__includes)
3434

3535

@@ -42,5 +42,5 @@ def include(self, path: str) -> LazyMultiLoaderWithInclude:
4242
self.__includes.append(path)
4343
return self
4444

45-
def load(self, object_type: Type[_T], *ids: str) -> Lazy[Dict[str, object]]:
45+
def load(self, object_type: Type[_T], *ids: str) -> Lazy[Dict[str, _T]]:
4646
return self.__session.lazy_load_internal(object_type, list(ids), self.__includes, None)

0 commit comments

Comments
 (0)