Skip to content

Commit

Permalink
Fix linting in log_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktBurger committed Oct 25, 2023
1 parent bd21a7c commit 0505755
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyleco/management/log_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def shut_down(self) -> None:
def __del__(self) -> None:
self.stop_collecting()

def _listen_setup(self, subscriptions: Optional[list[str] | tuple[str, ...]] = None,
def _listen_setup(self, subscriptions: Optional[list[str] | tuple[str, ...]] = None, # type: ignore # noqa
data_port: int = LOG_SENDING_PORT,
**kwargs):
poller = super()._listen_setup(data_port=data_port, **kwargs)
Expand Down Expand Up @@ -186,7 +186,8 @@ def get_last_save_name(self) -> str | None:
"""Return the name of the last save."""
return self.last_save_name

def get_log_entries(self, emitters: list[str] | tuple[str, ...]) -> dict[str, list[list[str]]]:
def get_log_entries(self, emitters: list[str] | tuple[str, ...]
) -> dict[str, list[list[str]] | None]:
return_dict = {}
for emitter in emitters:
return_dict[emitter] = self.log_entries.get(emitter)
Expand Down

0 comments on commit 0505755

Please sign in to comment.