car docs: fix diff bot (#28266)

* test bot

* fix docs bot

* revert

* use dataclass

* sad this doesn't work
pull/28264/head^2
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 import re
from abc import ABC, abstractmethod
from collections import namedtuple from collections import namedtuple
from dataclasses import dataclass, field from dataclasses import dataclass, field
from enum import Enum from enum import Enum
@ -39,12 +38,11 @@ class PartType(Enum):
mount = "Mount" mount = "Mount"
class Part(ABC): @dataclass
def __init__(self, name: str): class Part:
self.name = name name: str
@property @property
@abstractmethod
def type(self) -> PartType: def type(self) -> PartType:
raise NotImplementedError raise NotImplementedError

Loading…
Cancel
Save