You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Improve self-documentation of IterableObj and related classes
- Fill in the missing part of the explanation of why to favor iter_items over list_items in IterableObj and Iterable (#1775).- Move the explanation of how subclasses must treat arguments from the list_items methods to the iter_items methods, because the iter_items methdos are the ones that are abstract and must be overridden by a well-behaved subclass, and also because, since the iter_items methods are preferred for use, they should be the place where less duplicated shared documentation resides.- Subtantially reword the existing documentation for clarity, especially regarding the signifance of extra args and kwargs.- Put the iter_items method before (i.e. above) the list_items method (in each of the IterableObj and Iterable classes), because that method is the one that should be used more often, and because it is also now the one with the more detailed docstring.- Remove and old comment on a return type that said exactly the exact same thing as the annotation.- In Iterable, note deprecation more consistently (and thus in more places).- Rewrite the IterableClassWatcher class docstring to explain exactly what that metaclass achieves.