Skip to content

Add a few Redis types#3016

Merged
JelleZijlstra merged 4 commits intopython:masterfrom
srittau:redis
Jun 12, 2019
Merged

Add a few Redis types#3016
JelleZijlstra merged 4 commits intopython:masterfrom
srittau:redis

Conversation

@srittau
Copy link
Collaborator

@srittau srittau commented May 29, 2019

No description provided.

@bochecha
Copy link
Contributor

FWIW, this seems to work great at least in my use-case. 🙂

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for missing this! I have a few comments

ssl_keyfile: Optional[Text] = ...,
ssl_certfile: Optional[Text] = ...,
ssl_cert_reqs: Optional[Union[str, int]] = ...,
ssl_ca_certs: Optional[Text] = ...,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self,
name: Text,
value: Any,
ex: Optional[int] = ...,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ex and px can also be timedeltas

@srittau
Copy link
Collaborator Author

srittau commented Jun 12, 2019

@JelleZijlstra Thanks, done!

@JelleZijlstra JelleZijlstra merged commit b9101e9 into python:master Jun 12, 2019
@srittau srittau deleted the redis branch June 12, 2019 17:16
def set(self, name, value, ex=..., px=..., nx=..., xx=...): ...
def set(
self,
name: Text,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think name (here and in the other methods too) can be either str or bytes.

bochecha added a commit to HashBangCoop/mypy that referenced this pull request Jun 12, 2019
I need python/typeshed#3016 which is merged in
typeshed, but mypy upstream hasn't updated their submodule yet.
bochecha added a commit to HashBangCoop/mypy that referenced this pull request Jun 14, 2019
bochecha added a commit to HashBangCoop/mypy that referenced this pull request Jun 24, 2019
I need it for the Redis type stub improvements in master.

python/typeshed#3015
python/typeshed#3016
python/typeshed#3055
bochecha added a commit to HashBangCoop/mypy that referenced this pull request Jun 28, 2019
I need it for the Redis type stub improvements in master.

python/typeshed#3015
python/typeshed#3016
python/typeshed#3055
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants