Отсутствует параметры типа для общего типа "strictredis"Python

Программы на Python
Anonymous
Отсутствует параметры типа для общего типа "strictredis"

Сообщение Anonymous »

Код: Выделить всё

import redis

a = redis.StrictRedis(host="a", port=123, db=0, decode_response=true)
< /code>
mypy дает ошибку
Missing type parameters for generic type "StrictRedis"  [type-arg]

версия Python: 3.9.20
версия Mypy: 1.14.1

Подробнее здесь: https://stackoverflow.com/questions/793 ... trictredis

Вернуться в «Python»