Skip to content

Commit

Permalink
type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyhaibin committed Sep 24, 2024
1 parent 9132ed5 commit d3fbd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def apply_hysteresis(val: float, val_steady: float, hyst_gap: float) -> float:

class ButtonTracker:
def __init__(self):
self.prev_btn = None
self.prev_btn: int = 0

def create_button_events(self, cur_btn: int, buttons_dict: dict[int, structs.CarState.ButtonEvent.Type],
unpressed_btn: int = 0) -> list[structs.CarState.ButtonEvent]:
Expand Down

0 comments on commit d3fbd74

Please sign in to comment.