Install types-requests package
Krótki opis
Gdy używamy mypy'ja z flagą mypy --install-types
mypy próbuje za pomocą pipa zainstalowac paczkę types-requests, nie robi jednak tego automatycznie i czeka na input od użytkownika.
logi
tester@859985d2bae6:/testing_space$ mypy --install-types --python-version 3.10 accounting.py
accounting.py:127: error: Incompatible types in assignment (expression has type "Union[DoubleQuotedScalarString, List[Dict[str, DoubleQuotedScalarString]]]", variable has type "List[Dict[str, DoubleQuotedScalarString]]")
accounting.py:130: error: Dict entry 1 has incompatible type "str": "List[Dict[str, DoubleQuotedScalarString]]"; expected "str": "DoubleQuotedScalarString"
accounting.py:133: error: Dict entry 0 has incompatible type "str": "List[Dict[str, DoubleQuotedScalarString]]"; expected "str": "DoubleQuotedScalarString"
Found 3 errors in 1 file (checked 1 source file)
Installing missing stub packages:
/usr/local/bin/python -m pip install types-requests
Install? [yN]
Propozycja
Dodać instalacje paczki types-requests
do definicji kontenera.