Skip to content

Commit

Permalink
lint: enable ruff ANN204 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Oct 29, 2024
1 parent 50c9ab6 commit d56c521
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ ignore = [
"D417",
"A002",
"RUF012",
"ANN204",
]

[tool.mypy]
Expand Down
2 changes: 1 addition & 1 deletion raillabel/filter/_filter_classes/_filter_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def PARAMETERS(self) -> t.List[str]:
def LEVELS(self) -> t.List[str]:
raise NotImplementedError

def __init__(self, kwargs):
def __init__(self, kwargs) -> None:
set_parameter = None
for param in self.PARAMETERS:
if param in kwargs and param is not None:
Expand Down
2 changes: 1 addition & 1 deletion raillabel/format/_object_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _attributes_fromdict(

# === Special Methods ====================================================

def __post_init__(self):
def __post_init__(self) -> None:
"""Check for required arguments after __init__.
Inheritance in dataclasses has the flaw, that when the parent class has fields with
Expand Down

0 comments on commit d56c521

Please sign in to comment.