summaryrefslogtreecommitdiffstats
path: root/third_party/python/attrs/attr/exceptions.pyi
blob: f2680118b404db8f5227d04d27e8439331341c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from typing import Any

class FrozenError(AttributeError):
    msg: str = ...

class FrozenInstanceError(FrozenError): ...
class FrozenAttributeError(FrozenError): ...
class AttrsAttributeNotFoundError(ValueError): ...
class NotAnAttrsClassError(ValueError): ...
class DefaultAlreadySetError(RuntimeError): ...
class UnannotatedAttributeError(RuntimeError): ...
class PythonTooOldError(RuntimeError): ...

class NotCallableError(TypeError):
    msg: str = ...
    value: Any = ...
    def __init__(self, msg: str, value: Any) -> None: ...