Skip to content

Improve redis.sentinel types#8331

Merged
srittau merged 6 commits into
python:masterfrom
sobolevn:patch-2
Jul 19, 2022
Merged

Improve redis.sentinel types#8331
srittau merged 6 commits into
python:masterfrom
sobolevn:patch-2

Conversation

@sobolevn
Copy link
Copy Markdown
Member

I've tried to cover all possible types in this PR.
Some future work:

Reference: https://github.com/redis/redis-py/blob/c54dfa49dda6a7b3389dc230726293af3ffc68a3/redis/sentinel.py

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

LGTM, apart from the flake8 problem, two optional suggestions.

And I begin to understand why people have problems with the master/slave terminology ...

Comment thread stubs/redis/redis/sentinel.pyi Outdated
Comment thread stubs/redis/redis/sentinel.pyi
Comment thread stubs/redis/redis/sentinel.pyi Outdated
sobolevn and others added 2 commits July 19, 2022 13:36
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
@sobolevn
Copy link
Copy Markdown
Member Author

sobolevn commented Jul 19, 2022

And I begin to understand why people have problems with the master/slave terminology ...

Yes I agree, eventhough I am coming from a culture where we didn't ever have any slavery.
Probably it is worth pointing out at the original repo.

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 9cda16f into python:master Jul 19, 2022
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.

2 participants