Skip to content

Commit 059cb01

Browse files
committed
athenad: update typing
1 parent 7bc2667 commit 059cb01

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

selfdrive/athena/athenad.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class UploadFile:
7575
allow_cellular: bool
7676

7777
@classmethod
78-
def from_dict(cls, d: Dict) -> UploadFile:
78+
def from_dict(cls, d: dict) -> UploadFile:
7979
return cls(d.get("fn", ""), d.get("url", ""), d.get("headers", {}), d.get("allow_cellular", False))
8080

8181

@@ -92,7 +92,7 @@ class UploadItem:
9292
allow_cellular: bool = False
9393

9494
@classmethod
95-
def from_dict(cls, d: Dict) -> UploadItem:
95+
def from_dict(cls, d: dict) -> UploadItem:
9696
return cls(d["path"], d["url"], d["headers"], d["created_at"], d["id"], d["retry_count"], d["current"],
9797
d["progress"], d["allow_cellular"])
9898

@@ -309,7 +309,7 @@ def _do_upload(upload_item: UploadItem, callback: Optional[Callable] = None) ->
309309

310310
# security: user should be able to request any message from their car
311311
@dispatcher.add_method
312-
def getMessage(service: str, timeout: int = 1000) -> Dict:
312+
def getMessage(service: str, timeout: int = 1000) -> dict:
313313
if service is None or service not in service_list:
314314
raise Exception("invalid service")
315315

@@ -320,7 +320,7 @@ def getMessage(service: str, timeout: int = 1000) -> Dict:
320320
raise TimeoutError
321321

322322
# this is because capnp._DynamicStructReader doesn't have typing information
323-
return cast(Dict, ret.to_dict())
323+
return cast(dict, ret.to_dict())
324324

325325

326326
@dispatcher.add_method

0 commit comments

Comments
 (0)