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

PEP484 type annotate all of bandersnatch #15

Closed
cooperlees opened this issue May 16, 2018 · 7 comments · Fixed by #546 or #593
Closed

PEP484 type annotate all of bandersnatch #15

cooperlees opened this issue May 16, 2018 · 7 comments · Fixed by #546 or #593
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@cooperlees
Copy link
Contributor

Lets add PEP484 type annotations to all source code and get clean passing mypy checks.

Mypy: http://mypy.readthedocs.io/en/stable/getting_started.html
typing module: https://docs.python.org/3/library/typing.html

@pradyunsg
Copy link
Member

pradyunsg commented Jun 26, 2019

@cooperlees
Copy link
Contributor Author

Ok - Only plugins left to strictly type annotate. Help welcome or I'll eventually get to it.

@cooperlees cooperlees added the help wanted Extra attention is needed label Jun 1, 2020
@cooperlees
Copy link
Contributor Author

cooperlees commented Jun 8, 2020

I didn't mean to close this! We are getting close tho!

@rkm
Copy link
Contributor

rkm commented Jun 9, 2020

Hi! I can probably finish this off if you can point me in the right direction

@cooperlees
Copy link
Contributor Author

No problem. What's left is all the test code here:

https://github.com/pypa/bandersnatch/tree/master/src/bandersnatch/tests

How I'd go about this

@rkm
Copy link
Contributor

rkm commented Jun 15, 2020

hi, just a quick update. I've made a start on this here: master...rkm:issue/15-pep484-type-annotations. Turns out pytest is not very pep484-friendly currently, so I've had to import some of its private members to keep mypy happy. Interested to hear any suggestions!

some related issues:

@cooperlees
Copy link
Contributor Author

cooperlees commented Jun 15, 2020

Awesome stuff! Really appreciate the efforts. I'm also open to accepting some PRs that partly make this work and to divide up your remaining plan. I knew this would not be a super easy PR to finish. Also happy to accept plenty of # type: ignores and we can try go back through them as things gets resolved - e.g. pytest 6 arrives.

If you'd like more real time chat we can do that too on IRC - irc.freenode.net #bandersnatch. We have a few active maintainers hang out in there very regularly now!

This was referenced Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants