mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 09:13:46 +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