mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
passing linting tests and fixed documentation
This commit is contained in:
1 parent
482f7c9eea
commit
3a78a9cb2e
3 files changed
+37
-15
No files matched your search
+7
-5
@@ -92,12 +92,14 @@ def get_hash_str_from_dict(dictionary: Dict[str, Any]) -> str:
|
||||
return dhash.hexdigest()
|
||||
|
||||
|
||||
class IterableWrapper:
|
||||
"""A helper that will allow an instance of a class to return multiple kinds of iterables bound to different functions of that class.
|
||||
class IterableWrapper: # pylint: disable=too-few-public-methods
|
||||
"""A helper that will allow an instance of a class to return multiple kinds of iterables bound
|
||||
to different functions of that class.
|
||||
|
||||
To use this, pass in the instance of the class you want to have multiple kinds of iterables for, and pass in a
|
||||
method belonging to that class that you want to be the __next__() method of the iterable. The resulting instantiated object will
|
||||
be an iterable that will use the passed in class method as the __next__() method.
|
||||
To use this, pass in the instance of the class you want to have multiple kinds of iterables for,
|
||||
and pass in a method belonging to that class that you want to be the __next__() method of the
|
||||
iterable. The resulting instantiated object will be an iterable that will use the passed in
|
||||
class method as the __next__() method.
|
||||
|
||||
Args:
|
||||
instance (object): instance class we are wrapping
|
||||
|
||||
Reference in new issue
Block a user