add TODO for slots

pull/33208/head
Shane Smiskol 1 year ago
parent 610ee98b05
commit d98179d96c
  1. 1
      selfdrive/car/structs.py

@ -27,6 +27,7 @@ def auto_dataclass(cls=None, /, **kwargs):
else:
raise TypeError(f"Unsupported type for auto_field: {origin_typ}")
# TODO: use slots, this prevents accidentally setting attributes that don't exist
return _dataclass(cls, **kwargs)

Loading…
Cancel
Save