Skip to content

Fixed pylint errors #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions adafruit_progressbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,12 @@ def get_value_ratio(self, value: Union[int, float]) -> float:

return (float(value) - self.minimum) / (self.maximum - self.minimum)

@classmethod
def _get_value_sizes(cls, _old_ratio: float, _new_ratio: float) -> Tuple[int, int]:
# pylint: disable=no-self-use
def _get_value_sizes(self, _old_ratio: float, _new_ratio: float) -> Tuple[int, int]:
return 0, 0

@classmethod
def _get_max_fill_size(cls) -> int:
# pylint: disable=no-self-use
def _get_max_fill_size(self) -> int:
return 0

def _get_ratios(
Expand All @@ -521,8 +521,8 @@ def _adjust_size_for_range_limits(
def _get_sizes_min_max(self) -> Tuple[int, int]:
return 0, min(self.fill_width(), self.fill_height())

@classmethod
def _invert_fill_direction(cls) -> bool:
# pylint: disable=no-self-use
def _invert_fill_direction(self) -> bool:
return False

def _get_horizontal_fill(
Expand Down