car docs: fix diff bot (#28266)

* test bot

* fix docs bot

* revert

* use dataclass

* sad this doesn't work
mqb-freewheeling
Shane Smiskol 2 years ago committed by GitHub
parent 715d7f9e3d
commit eee8a7a4b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      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

Loading…
Cancel
Save