Skip to content

Commit

Permalink
Use self in _forbidden_operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Sep 13, 2021
1 parent 206eb43 commit a06c0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfisca_core/indexed_enums/enum_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def __ne__(self, other: Any) -> Union[ArrayType[bool], bool]:

def _forbidden_operation(self, other: Any) -> NoReturn:
raise TypeError(
"Forbidden operation. The only operations allowed on EnumArrays "
"are '==' and '!='.",
"Forbidden operation. The only operations allowed on "
f"{self.__class__.__name__}s are '==' and '!='.",
)

__add__ = _forbidden_operation
Expand Down

0 comments on commit a06c0c6

Please sign in to comment.