App.NoopCompleter: Fix argcomplete 3.7 type errors
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m1s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m8s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m39s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m54s
CI / Packaging test (push) Successful in 0s
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m1s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m8s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m39s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m54s
CI / Packaging test (push) Successful in 0s
argcomplete 3.7 declares BaseCompleter.__call__() with an Iterable return, and mypy rejects the None-returning override in NoopCompleter. Return an empty list instead. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6867a43b4d
commit
35f6e0dbc2
1 changed files with 3 additions and 2 deletions
|
|
@ -407,8 +407,9 @@ class App: # export
|
||||||
|
|
||||||
@override
|
@override
|
||||||
def __call__( # pyright: ignore[reportGeneralTypeIssues]
|
def __call__( # pyright: ignore[reportGeneralTypeIssues]
|
||||||
self, *args: Any, **kwargs: Any) -> None:
|
self, *args: Any, **kwargs: Any,
|
||||||
return None
|
) -> list[str]:
|
||||||
|
return []
|
||||||
|
|
||||||
import argcomplete # type: ignore[import-not-found, unused-ignore]
|
import argcomplete # type: ignore[import-not-found, unused-ignore]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue