Skip to content

Commit

Permalink
Add --warn-redundant-casts to mypy checks (commaai#24304)
Browse files Browse the repository at this point in the history
* add mypy checks for redundant-casts and unused-ignores

* revert unnecessary changes

* ignore

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
  • Loading branch information
herman5 and adeebshihadeh committed Apr 29, 2022
1 parent 2b6b597 commit d5b9998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/hardware/tici/agnos.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class StreamingDecompressor:
def __init__(self, url: str) -> None:
self.buf = b""

self.req = requests.get(url, stream=True, headers={'Accept-Encoding': None})
self.req = requests.get(url, stream=True, headers={'Accept-Encoding': None}) # type: ignore
self.it = self.req.iter_content(chunk_size=1024 * 1024)
self.decompressor = lzma.LZMADecompressor(format=lzma.FORMAT_AUTO)
self.eof = False
Expand Down

0 comments on commit d5b9998

Please sign in to comment.