fix ruff checks (mostly documentation and dead code)
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
"""common."""
|
||||
"""Common utilities."""
|
||||
|
||||
import itertools
|
||||
import logging
|
||||
import sys
|
||||
from subprocess import Popen,PIPE
|
||||
from collections.abc import Iterable
|
||||
from subprocess import PIPE, Popen
|
||||
from types import FunctionType
|
||||
|
||||
|
||||
def configure_logger(level: str = "INFO") -> None:
|
||||
@ -20,7 +22,7 @@ def configure_logger(level: str = "INFO") -> None:
|
||||
)
|
||||
|
||||
|
||||
def partition(predicate, iterable):
|
||||
def partition(predicate: FunctionType, iterable: Iterable) -> tuple[Iterable, Iterable]:
|
||||
"""Partition entries into false entries and true entries.
|
||||
|
||||
If *predicate* is slow, consider wrapping it with functools.lru_cache().
|
||||
|
Reference in New Issue
Block a user