Skip to content

Commit

Permalink
Remove unnecessary noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
schobbejak committed Dec 27, 2024
1 parent c27d5ab commit ea37c8f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions epochlib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __post_init__(self) -> None:
"""
return super().__post_init__()

def train(self, x: Any, y: Any, **train_args: Any) -> tuple[Any, Any]: # noqa: ANN401
def train(self, x: Any, y: Any, **train_args: Any) -> tuple[Any, Any]:
"""Train the system.
:param x: The input to the system.
Expand All @@ -32,7 +32,7 @@ def train(self, x: Any, y: Any, **train_args: Any) -> tuple[Any, Any]: # noqa:
"""
return super().train(x, y, **train_args)

def predict(self, x: Any, **pred_args: Any) -> Any: # noqa: ANN401
def predict(self, x: Any, **pred_args: Any) -> Any:
"""Predict the output of the system.
:param x: The input to the system.
Expand Down
2 changes: 1 addition & 1 deletion epochlib/training/augmentation/image_augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import torch


def get_kornia_mix() -> Any: # noqa: ANN401
def get_kornia_mix() -> Any:
"""Return kornia mix."""
try:
import kornia
Expand Down
2 changes: 1 addition & 1 deletion epochlib/transformation/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def log_to_terminal(self, message: str) -> None:

title: str = "Transformation Pipeline" # The title of the pipeline since transformation pipeline can be used for multiple purposes. (Feature, Label, etc.)

def transform(self, data: Any, cache_args: CacheArgs | None = None, **transform_args: Any) -> Any: # noqa: ANN401
def transform(self, data: Any, cache_args: CacheArgs | None = None, **transform_args: Any) -> Any:
"""Transform the input data.
:param data: The input data.
Expand Down
4 changes: 2 additions & 2 deletions epochlib/transformation/transformation_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def custom_transform(self, data: Any) -> Any:
data = custom_transformation_block.transform(data, cache=cache_args)
"""

def transform(self, data: Any, cache_args: CacheArgs | None = None, **transform_args: Any) -> Any: # noqa: ANN401
def transform(self, data: Any, cache_args: CacheArgs | None = None, **transform_args: Any) -> Any:
"""Transform the input data using a custom method.
:param data: The input data.
Expand All @@ -77,7 +77,7 @@ def transform(self, data: Any, cache_args: CacheArgs | None = None, **transform_
return data

@abstractmethod
def custom_transform(self, data: Any, **transform_args: Any) -> Any: # noqa: ANN401
def custom_transform(self, data: Any, **transform_args: Any) -> Any:
"""Transform the input data using a custom method.
:param data: The input data.
Expand Down

0 comments on commit ea37c8f

Please sign in to comment.