Skip to content

Commit

Permalink
add pylint ingore statements
Browse files Browse the repository at this point in the history
  • Loading branch information
epistoteles committed Jun 1, 2024
1 parent 27d551c commit bda737b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tensorhue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def viz(self) -> None:
Prints the tensor using a colored Unicode art representation.
This method checks the type of the tensor and calls the `_viz_tensor` function with the appropriate colors.
"""
if isinstance(self, torch.FloatTensor):
if isinstance(
self, torch.FloatTensor
): # pylint: disable=possibly-used-before-assignment
_viz_tensor(self)
elif isinstance(self, torch.BoolTensor):
_viz_tensor(self, (COLORS["false"], COLORS["true"]))
Expand Down
2 changes: 1 addition & 1 deletion tensorhue/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"white": ColorTriplet(255, 255, 255), # white
}

COLOR_MAPPING = {
COLOR_MAPPING = { # pylint: disable=consider-using-namedtuple-or-dataclass
"default": ("default_dark", "default_bright"),
"bool": ("false", "true"),
}

0 comments on commit bda737b

Please sign in to comment.