@@ -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