From eee8a7a4b45150981b9d313fb5546bd2cf7ebcc1 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 23 May 2023 00:36:42 -0700 Subject: [PATCH] car docs: fix diff bot (#28266) * test bot * fix docs bot * revert * use dataclass * sad this doesn't work --- selfdrive/car/docs_definitions.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/selfdrive/car/docs_definitions.py b/selfdrive/car/docs_definitions.py index f6c63ef4ca..89e7a2db0a 100644 --- a/selfdrive/car/docs_definitions.py +++ b/selfdrive/car/docs_definitions.py @@ -1,5 +1,4 @@ import re -from abc import ABC, abstractmethod from collections import namedtuple from dataclasses import dataclass, field from enum import Enum @@ -39,12 +38,11 @@ class PartType(Enum): mount = "Mount" -class Part(ABC): - def __init__(self, name: str): - self.name = name +@dataclass +class Part: + name: str @property - @abstractmethod def type(self) -> PartType: raise NotImplementedError