mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-29 11:03:41 +08:00
more ty, part 2 (#38379)
This commit is contained in:
@@ -184,7 +184,7 @@ class BinaryStruct:
|
||||
setattr(obj, name, value)
|
||||
return obj
|
||||
|
||||
cls._read = _read
|
||||
cls._read = _read # ty: ignore[invalid-assignment] # installed dynamically for each subclass
|
||||
|
||||
@classmethod
|
||||
def from_bytes(cls: type[T], data: bytes) -> T:
|
||||
|
||||
Reference in New Issue
Block a user