diff --git a/flask_redis/client.pyi b/flask_redis/client.pyi new file mode 100644 index 0000000..d119834 --- /dev/null +++ b/flask_redis/client.pyi @@ -0,0 +1,24 @@ +from typing import Union + +from flask import Flask +from redis import Redis, StrictRedis + + +class FlaskRedis(Redis): + def __init__( + self, + app: Flask = None, + strict: bool = True, + config_prefix: str = "REDIS", + **kwargs + ) -> None: ... + + @classmethod + def from_custom_provider( + cls, + provider: Union[StrictRedis, Redis], + app: Flask = None, + **kwargs + ) -> "FlaskRedis": ... + + def init_app(self, app: Flask = None, **kwargs) -> None: ...