Move all mypy configuration to configuration file#987
Conversation
Codecov Report
@@ Coverage Diff @@
## master #987 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 294 294
Lines 7732 7732
=====================================
Hits 7732 7732Continue to review full report at Codecov.
|
|
Ah, different Python versions require different
|
tiangolo
left a comment
There was a problem hiding this comment.
The ignores make it work in both Python 3.6 and 3.7+. And that also makes it better not to have warn_unused_ignores = True, or it would complain in one ignores for 3.6 and the others for 3.7.
But I think it's true we could have all the mypy configs in a single place instead of file and command line. Could you please remove the other changes and just leave the disallow_untyped_defs = True in the mypy.ini, and remove it from the command?
|
@tiangolo 👍 done |
|
Perfect, thank you! 🚀 🔧 |
Remove unused# type: ignoresMake mypy complain about unused# type: ignoresscripts/lint.sh)