Skip to content

Commit

Permalink
ruff correction
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed May 5, 2024
1 parent 98970df commit 751e11f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tmtccmd/fsfw/tmtc_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

import logging
import enum
from collections.abc import Generator
from typing import List, Optional

from spacepackets.util import get_printable_data_string, PrintFormats

from tmtccmd.tmtc.tm_base import PusTmInfoInterface, PusTmInterface
from tmtccmd.util.obj_id import ObjectIdU32, ObjectIdBase
from tmtccmd.util.obj_id import ObjectIdU32
from tmtccmd.pus.tm.s3_hk_base import HkContentType
from tmtccmd.logging import get_current_time_string

Expand Down Expand Up @@ -187,7 +188,7 @@ def print_data(data: bytes):
_LOGGER.info(string)

@staticmethod
def chunks(lst: List, n) -> List[List]:
def chunks(lst: List, n) -> Generator[List[List], None, None]:
"""Yield successive n-sized chunks from lst."""
for i in range(0, len(lst), n):
yield lst[i : i + n]

0 comments on commit 751e11f

Please sign in to comment.