rmartin16 / qbittorrent-api

Python client implementation for qBittorrent's Web API
https://qbittorrent-api.readthedocs.io/
MIT License
398 stars 66 forks source link

Bump pre-commit hook for mirrors-mypy from v1.9.0 to v1.10.1 #467

Closed rmartin16 closed 2 months ago

rmartin16 commented 2 months ago

Automatically bumped pre-commit hook for mirrors-mypy from v1.9.0 to v1.10.1 and ran the update against the repo.

rmartin16 commented 2 months ago

mypy is still busted for functools.wraps; sticking with v1.9.0:

mypy.....................................................................Failed
- hook id: mypy
- exit code: 1

src/qbittorrentapi/request.py:190: error: Argument 1 to "__call__" of "_Wrapped" has incompatible type "str"; expected "QbittorrentSession"  [arg-type]
src/qbittorrentapi/transfer.py:220: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/transfer.py:230: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/transfer.py:255: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/transfer.py:265: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/transfer.py:275: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/transfer.py:285: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/torrents.py:1932: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/torrents.py:1947: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/torrents.py:1976: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/torrents.py:1991: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/torrents.py:2136: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/app.py:302: error: Missing positional argument "self" in call to "__call__" of "_Wrapped"  [call-arg]
src/qbittorrentapi/app.py:354: error: Need type annotation for "getDirectoryContent"  [var-annotated]
Found 14 errors in 4 files (checked 16 source files)