-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Relax ignore-missing-imports
for modules that have stubs now and update mypy
#11006
Changes from 11 commits
2665e77
05bd370
faa1f10
db6001f
e4a27c1
eec2cb0
df7ffe5
3844414
ec73d78
e3e8756
4d0bc24
79fcc8c
e2ec76b
57ba17d
6630fa2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Use type stubs for jsonschema, pyOpenSSL and Pillow when running mypy in CI. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,16 @@ def exec_file(path_segments): | |
"pygithub==1.55", | ||
] | ||
|
||
CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.812", "mypy-zope==0.2.13"] | ||
CONDITIONAL_REQUIREMENTS["mypy"] = [ | ||
"mypy>=0.812", | ||
"mypy-zope>=0.2.13", | ||
"types-bleach>=4.1.0", | ||
"types-jsonschema>=3.2.0", | ||
"types-Pillow>=8.3.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder how closely these should match the versions that we have installed (or are they versioned separately)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assumed the versions match the underlying project's versions, but from http://mypy-lang.blogspot.com/2021/05/the-upcoming-switch-to-modular-typeshed.html I read that
That was back in May though. There's some discussion on PEP 561, but I'm not sure what to make of it to be honest. I'm somewhat tempted to leave this as it is and see how things go. |
||
"types-pyOpenSSL>=20.0.7", | ||
"types-PyYAML>=5.4.10", | ||
"types-setuptools>=57.4.0", | ||
] | ||
|
||
# Dependencies which are exclusively required by unit test code. This is | ||
# NOT a list of all modules that are necessary to run the unit tests. | ||
|
Uh oh!
There was an error while loading. Please reload this page.