Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Apr 30, 2022
1 parent d35fe16 commit f50d95c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wemake_python_styleguide/violations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ class ViolationPostfixes(enum.Enum):
less_than = ' < {0}'


class BaseViolation(object, metaclass=abc.ABCMeta):
# TODO: remove `noqa` after a new release:
class BaseViolation(object, metaclass=abc.ABCMeta): # noqa: WPS338
"""
Abstract base class for all style violations.
Expand Down Expand Up @@ -108,8 +109,7 @@ class BaseViolation(object, metaclass=abc.ABCMeta):
ViolationPostfixes.bigger_than
)

# TODO: remove `noqa` after a new release:
def __init_subclass__(cls, **kwargs) -> None: # noqa: WPS338
def __init_subclass__(cls, **kwargs) -> None:
"""Sets additional values for subclasses."""
super().__init_subclass__(**kwargs)
violation_code = getattr(cls, 'code', None)
Expand Down

0 comments on commit f50d95c

Please sign in to comment.