Datasets:

Languages:
English
ArXiv:
License:
mattdeitke commited on
Commit
380ded7
1 Parent(s): e3778f4

make abstract return a dict

Browse files
Files changed (1) hide show
  1. objaverse_xl/abstract.py +4 -3
objaverse_xl/abstract.py CHANGED
@@ -1,5 +1,5 @@
1
  from abc import ABC, abstractmethod
2
- from typing import Callable, Optional
3
 
4
  import pandas as pd
5
 
@@ -30,7 +30,7 @@ class ObjaverseSource(ABC):
30
  handle_modified_object: Optional[Callable] = None,
31
  handle_missing_object: Optional[Callable] = None,
32
  **kwargs
33
- ) -> None:
34
  """Downloads all objects from the source.
35
 
36
  Args:
@@ -87,6 +87,7 @@ class ObjaverseSource(ABC):
87
  Return is not used. Defaults to None.
88
 
89
  Returns:
90
- None
 
91
  """
92
  pass
 
1
  from abc import ABC, abstractmethod
2
+ from typing import Callable, Optional, Dict
3
 
4
  import pandas as pd
5
 
 
30
  handle_modified_object: Optional[Callable] = None,
31
  handle_missing_object: Optional[Callable] = None,
32
  **kwargs
33
+ ) -> Dict[str, str]:
34
  """Downloads all objects from the source.
35
 
36
  Args:
 
87
  Return is not used. Defaults to None.
88
 
89
  Returns:
90
+ Dict[str, str]: Mapping of file identifiers to local paths of the downloaded
91
+ 3D objects.
92
  """
93
  pass