-
Notifications
You must be signed in to change notification settings - Fork 72
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
Pylint fixes for .pyi files #265
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #265 +/- ##
=======================================
Coverage 95.42% 95.42%
=======================================
Files 9 9
Lines 1027 1027
Branches 216 216
=======================================
Hits 980 980
Misses 43 43
Partials 4 4 ☔ View full report in Codecov by Sentry. |
Might have to look at this a little more. Getting this (Although only in the pull_request test run not the push test run. The references are wrong, but still points to something.
|
looks like it comes from the blessed/sequences.pyi file, importing blessed/terminal.py to use the Terminal type Line 6 in c28b53f
I'm not sure what could be done, except to move all of sequences.* into terminal.* so that they are in the same file |
I am ok with moving all of sequences into terminal, so long as there is some alias that allows |
@jquast, sorry for the delay. I went the route of using a guard We could use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding a less radical fix :) no need to apologize, looks great, hope you are well!
Looks like there are some errors due to missing type annotations for the |
Pylint recently started checking .pyi files but there are some messages that either don't make sense (ex: unused argument) or aren't strictly necessary in a type hints file (ex: no function docstring).
There is some discussion in pylint-dev/pylint#9096 of quieting these, but rather than wait, I figured we can fix the ones that made sense to fix and disable the others.