Skip to content

Remove python_version setting from mypy.ini#8426

Merged
ohemorange merged 11 commits intomasterfrom
py3-mypy
Nov 5, 2020
Merged

Remove python_version setting from mypy.ini#8426
ohemorange merged 11 commits intomasterfrom
py3-mypy

Conversation

@bmw
Copy link
Copy Markdown
Member

@bmw bmw commented Nov 3, 2020

Fixes #7806.

This is needed to unblock #8134 as described at #8134 (comment).

One change in this PR which isn't ideal is disabling the type checking on msvcrt in lock.py. As said in the comment, this is fixed in newer versions of mypy so I tried to upgrade mypy to fix it but it's a fair bit of work. Instead, I opened #8425 to track that as part of our planned mypy work in a few months.

Copy link
Copy Markdown
Contributor

@ohemorange ohemorange left a comment

Choose a reason for hiding this comment

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

lgtm!

@ohemorange ohemorange merged commit 75365f1 into master Nov 5, 2020
@ohemorange ohemorange deleted the py3-mypy branch November 5, 2020 23:28
atombrella pushed a commit to atombrella/certbot that referenced this pull request Nov 12, 2020
* Remove python_version from mypy.ini.

* Fix magic_typing

* Ignore msvcrt usage.

* make mypy happier

* clean up changes

* Add type for reporter queue

* More mypy fixes

* Fix pyrfc3339 str.

* Remove unused import.

* Make certbot.util mypy work in both Pythons

* Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove python_version setting from mypy.ini

2 participants