Skip to content

Commit

Permalink
Fixed pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raulikak committed May 12, 2024
1 parent 06cdb35 commit 29aa397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tcsfw/registry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Event registry backed by database"""

import logging
from typing import List, Optional, Dict, Self, Any, Set
from typing import Optional, Dict, Self, Any, Set

from tcsfw.entity import Entity
from tcsfw.entity_database import EntityDatabase, InMemoryDatabase
Expand Down
4 changes: 2 additions & 2 deletions tcsfw/text_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, columns: List[Tuple[str, int]], screen_size: Tuple[int, int])
self.screen_size = screen_size
self.columns = columns
# spread columns evenly
min_wid = sum([c[1] for c in columns]) + len(columns) - 1
min_wid = sum(c[1] for c in columns) + len(columns) - 1
if min_wid < screen_size[0]:
ratio = screen_size[0] / min_wid
self.columns = [(c[0], int(c[1] * ratio)) for c in columns]
Expand Down Expand Up @@ -156,7 +156,7 @@ def get_print(cls, registry: Registry, name: str, parameters: Dict[str, str]) ->
"""Get printout by name"""
screen = parameters.get("screen")
if screen:
screen_size = tuple([int(x) for x in screen.split("x")])
screen_size = tuple(int(x) for x in screen.split("x"))
assert len(screen_size) == 2
else:
screen_size = (80, 50)
Expand Down

0 comments on commit 29aa397

Please sign in to comment.