Skip to content

Commit

Permalink
Add stubs for NotCallableError
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjamir committed Jun 18, 2019
1 parent c793ae7 commit 4ddf28b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/attr/exceptions.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
from typing import Any

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

class AttrsAttributeNotFoundError(ValueError): ...
class NotAnAttrsClassError(ValueError): ...
class DefaultAlreadySetError(RuntimeError): ...
class UnannotatedAttributeError(RuntimeError): ...

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

0 comments on commit 4ddf28b

Please sign in to comment.