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

WIP: mypy plugin #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP: mypy plugin #151

wants to merge 1 commit into from

Conversation

sobolevn
Copy link

Here's a very quick and very dirty implementation of a plugin that does one thing: reveals the type of glom(person, 'age'). Which is int.

There are also several mypy issues that need to be fixed / ignored.

Reproduction: mypy ex.py

Снимок экрана 2020-06-26 в 21 47 32

I am sorry, but I don't have much time to work on this further (there are a lot of my own projects that do require a lot of effort from me). So, I would love to pass it on to someone, and of course, I would love to help / review / answer any questions about developing a mypy plugin.

Related to #148

@sobolevn
Copy link
Author

Quick update: I have released AttrOf type that does exactly the same thing.
Docs: https://github.com/wemake-services/mypy-extras/

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.

1 participant