Spaces:
Sleeping
Sleeping
Download DI-engine/ding/utils/loader/exception.py from OpenDILabCommunity/gomoku: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/spaces/OpenDILabCommunity/gomoku/resolve/main/DI-engine/ding/utils/loader/exception.py
- Command line
-
hf download hf://spaces/OpenDILabCommunity/gomoku/DI-engine/ding/utils/loader/exception.py
-
curl -L -o exception.py https://huggingface.co/spaces/OpenDILabCommunity/gomoku/resolve/main/DI-engine/ding/utils/loader/exception.py
589 Bytes
| from abc import ABCMeta, abstractmethod | |
| from typing import List, Union, Tuple | |
| INDEX_TYPING = Union[int, str] | |
| ERROR_ITEM_TYPING = Tuple[INDEX_TYPING, Exception] | |
| ERROR_ITEMS = List[ERROR_ITEM_TYPING] | |
| class CompositeStructureError(ValueError, metaclass=ABCMeta): | |
| """ | |
| Overview: | |
| Composite structure error. | |
| Interfaces: | |
| ``__init__``, ``errors`` | |
| Properties: | |
| ``errors`` | |
| """ | |
| def errors(self) -> ERROR_ITEMS: | |
| """ | |
| Overview: | |
| Get the errors. | |
| """ | |
| raise NotImplementedError | |