---------------------------------------------------------------------- This is the API documentation for the gdtest_dunders library. ---------------------------------------------------------------------- ## Classes Main classes provided by the package Collection(*items) A custom collection with dunder methods. Parameters ---------- items Initial items for the collection. ## Collection Methods Methods for the Collection class __repr__(self) -> str String representation. Returns ------- str repr string. __eq__(self, other) -> bool Check equality. Parameters ---------- other The other object to compare. Returns ------- bool True if equal. __len__(self) -> int Get the number of items. Returns ------- int Number of items. __getitem__(self, index: int) Get an item by index. Parameters ---------- index The item index. Returns ------- object The item at the given index. add(self, item) -> None Add an item to the collection. Parameters ---------- item The item to add. clear(self) -> None Remove all items from the collection.