We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 304854a commit 7b9cd1dCopy full SHA for 7b9cd1d
src/exceptions.py
@@ -40,13 +40,13 @@ def message(self) -> str:
40
return self._message
41
42
@property
43
- def source(self) -> str:
+ def source(self) -> typing.Optional[str]:
44
assert self._source is None or type(self._source) is str
45
return self._source
46
47
def __repr__(self) -> str:
48
# It must be overrided!
49
- assert type(self) == InvalidOperationException # noqa: E721
+ assert type(self) is InvalidOperationException
50
r = "{}({}, {})".format(
51
__class__.__name__,
52
repr(self._message),
0 commit comments