You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
539 B

  1. from typing import Any
  2. class FrozenError(AttributeError):
  3. msg: str = ...
  4. class FrozenInstanceError(FrozenError): ...
  5. class FrozenAttributeError(FrozenError): ...
  6. class AttrsAttributeNotFoundError(ValueError): ...
  7. class NotAnAttrsClassError(ValueError): ...
  8. class DefaultAlreadySetError(RuntimeError): ...
  9. class UnannotatedAttributeError(RuntimeError): ...
  10. class PythonTooOldError(RuntimeError): ...
  11. class NotCallableError(TypeError):
  12. msg: str = ...
  13. value: Any = ...
  14. def __init__(self, msg: str, value: Any) -> None: ...