Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start to add type hints #415

Merged
merged 1 commit into from
Sep 13, 2022
Merged

Start to add type hints #415

merged 1 commit into from
Sep 13, 2022

Conversation

jogo
Copy link
Contributor

@jogo jogo commented Aug 17, 2022

First pass at adding some type hints to pymemcache to make it easier to
develop against etc.

pymemcache/client/base.py Outdated Show resolved Hide resolved
def set(
self,
key: KeyInputSpec,
value: Any,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like to have some constraints on value, but that might need to wait until we have more typing machinery in place for the serde interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed

pymemcache/client/base.py Outdated Show resolved Hide resolved
pymemcache/client/base.py Outdated Show resolved Hide resolved
pymemcache/client/base.py Show resolved Hide resolved
@jogo jogo force-pushed the types branch 2 times, most recently from 7bfd63a to 0b3bd4f Compare September 9, 2022 16:01
First pass at adding some type hints to pymemcache to make it easier to
develop against etc.
@jogo jogo merged commit 4940034 into pinterest:master Sep 13, 2022
@jogo jogo deleted the types branch September 13, 2022 16:26
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