Skip to content

Commit

Permalink
fix: address pylint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OdoctorG committed Jul 4, 2024
1 parent fea3f29 commit 0ba6513
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/restbus/restbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import math
import re
import time
from typing import Any, Generator, Iterable, Optional, Tuple, TypeAlias
from typing import Any, Dict, Generator, Iterable, List, Optional, Tuple

import google.protobuf.internal.containers # type: ignore
import remotivelabs.broker.sync as br
from grpc import Channel
from typing_extensions import TypeAlias


class SignalValue: # pylint: disable=R0903
Expand All @@ -23,9 +24,9 @@ def next(self) -> br.network_api_pb2.Signal:
return ret


SchedulingTuple: TypeAlias = Tuple[float, str, list[SignalValue]]
E2eCounterStates: TypeAlias = dict[str, int]
OverrideValues: TypeAlias = dict[str, list[float]]
SchedulingTuple: TypeAlias = Tuple[float, str, List[SignalValue]]
E2eCounterStates: TypeAlias = Dict[str, int]
OverrideValues: TypeAlias = Dict[str, List[float]]


def gen_default_publish_values(
Expand Down
1 change: 1 addition & 0 deletions python/subscribe-to-scripted-signal/subscribe_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def run(


class ScriptPathArgument(argparse.Action):
# pylint: disable=R0913
# pylint: disable=W0222
def __call__(self, _parser: Any, namespace: Any, value: Any, _option: Any) -> None: # type: ignore
print("Script path in use:", value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def run(


class ScriptPathArgument(argparse.Action):
# pylint: disable=R0903
# pylint: disable=W0222
def __call__(self, _parser: Any, namespace: argparse.Namespace, value: Any, _option: Any) -> None: # type: ignore
print("Script path in use:", value)
Expand Down

0 comments on commit 0ba6513

Please sign in to comment.