mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
Add --warn-redundant-casts to mypy checks (#24304)
* add mypy checks for redundant-casts and unused-ignores * revert unnecessary changes * ignore Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: ee0021b86cc6ae6a9105d82798c34c5371992afb
This commit is contained in:
@@ -23,6 +23,7 @@ repos:
|
||||
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs', 'types-requests', 'types-atomicwrites',
|
||||
'types-pycurl']
|
||||
args:
|
||||
- --warn-redundant-casts
|
||||
- --warn-unreachable
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 4.0.1
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user