-
Notifications
You must be signed in to change notification settings - Fork 272
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
improve mypy typing #600 #620
Conversation
e067761
to
2567dc9
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #620 +/- ##
==========================================
- Coverage 98.63% 98.61% -0.02%
==========================================
Files 71 71
Lines 8626 8647 +21
==========================================
+ Hits 8508 8527 +19
- Misses 118 120 +2 ☔ View full report in Codecov by Sentry. |
I'm sure you know this already, but just FYI you can put these settings into the Mypy config file too to avoid having to pass them each time into the command line. |
yeah thx, i know. had this command in a shell script for playing around, but at some point it should be included in |
f9e6a24
to
2fcb176
Compare
dee6328
to
8107ddf
Compare
When the change is going to be released? |
@sshishov what exactly is your use-case in benefiting from this PR? we will likely never be able to pass full |
As a user of |
in that case I will revisit this PR when I have some spare time. |
Hello @tfranzel and @johnthagen . My use case is the subclass of AutoSchema and extend it to use with Definitely we can add the ignore and completely abandon typing hints but we would like to use the typing hints as it make the coding more fun and easy. Do not get me wrong, guys, just adding typing is beneficial as IDE start helping a lot in that case. Also typed code much easier to read and extend as you know that are the parameters, what their types and kind of how to use them. Thank you! And sorry for the longread... |
bbf1bc1
to
f666620
Compare
f666620
to
e0f4dd6
Compare
Hey guys, so I revised this PR again. I think it is a lot better now and a step in the right direction, but not perfect and not complete by any stretch of the imagination. not sure exactly how far we can go further, but passing --strict is imho almost impossible due to the dynamic nature of the package. any further iteration should be smaller though. feel free to give feedback. |
@tfranzel Wanted to report I just updated to |
Type improvements. This will fix some of the
mypy --strict
flags. Green for the following flags. Commented out flags still fail.