You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, would it be possible to add method annotations ass string literals to get type annotations with mypy? I was using types-redis but it doesn't support some new functionality from the >=5.0.0.
If this is not possible could you please give me explanation what it would break? Thanks
fromjsonimportJSONDecoder, JSONEncoderfromtypingimportTYPE_CHECKINGifTYPE_CHECKING:
from .jsonimportJSONclassRedisModuleCommands:
"""This class contains the wrapper functions to bring supported redis modules into the command namespace. """defjson(self, encoder=JSONEncoder(), decoder=JSONDecoder()) ->"JSON":
"""Access the json namespace, providing support for redis json."""from .jsonimportJSONjj=JSON(client=self, encoder=encoder, decoder=decoder)
returnjj
The text was updated successfully, but these errors were encountered:
Hi @CoJeAndy, that sounds like a great addition! I can make the change sometime next week, but if you have time, feel free to contribute by opening a PR. 🙂
Hi, would it be possible to add method annotations ass string literals to get type annotations with mypy? I was using
types-redis
but it doesn't support some new functionality from the >=5.0.0.If this is not possible could you please give me explanation what it would break? Thanks
The text was updated successfully, but these errors were encountered: