Skip to content

Add typehints #74

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

Merged
merged 12 commits into from
Nov 5, 2021
Merged

Add typehints #74

merged 12 commits into from
Nov 5, 2021

Conversation

tekktrik
Copy link
Member

@tekktrik tekktrik commented Nov 2, 2021

Shout out to whoever added those Sphinx markups, you made life much easier!

Closes: #72

evaherrada and others added 4 commits September 28, 2021 10:16
Change parentheses to brackets, and it should be List[int]
@tannewt tannewt requested a review from a team November 2, 2021 16:35
@tekktrik
Copy link
Member Author

tekktrik commented Nov 2, 2021

Meant to tag this as resolving issue #72

@jepler
Copy link

jepler commented Nov 2, 2021

Meant to tag this as resolving issue #72

I added text to the initial comment so that the issue would be linked.

@tekktrik
Copy link
Member Author

tekktrik commented Nov 2, 2021

Missed that, thanks!

@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

I know there was a patch for regarding upgrading pylint, but I can't seem to get it, is that something I should do for this?

@kattni
Copy link
Contributor

kattni commented Nov 5, 2021

@tekktrik You don't need to do anything to upgrade Pylint on this repo, it happens behind the scenes. I've rerun the jobs - a number of the failures are a check we are disabling separately. I will rerun the jobs after that, and then you are welcome to take care of the rest of the linting issues in the repo (as per https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing/pull/75/files) and we can close Dylan's PR in place of this one. Otherwise, I need to merge Dylan's PR, and then you have to update this one to match anyway.

Are you up for linting this? You would need to update the imports, and disable ,duplicate-code exactly like I explained on Discord for the other repo. Please ignore the unspecified-encoding check, as it should be disabled globally in a bit here.

@kattni kattni mentioned this pull request Nov 5, 2021
@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

Definitely up for linting!

@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

Just merged that linting branch into mine

@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

Nevermind that, working on it now!

@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

Changes from #75 incorporated!

Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

Thanks so much! One more thing below.

f = open("/sd/tft_featherwing.txt", "w")
f.write("Blinka\nBlackberry Q10 Keyboard")
f.close()
with open( # pylint: disable=unspecified-encoding
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this pylint: disable= as we've added it globally. Thanks!

f = open("/sd/tft_featherwing.txt", "r")
print(f.read())
f.close()
with open( # pylint: disable=unspecified-encoding
Copy link
Contributor

Choose a reason for hiding this comment

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

Same!

@kattni kattni mentioned this pull request Nov 5, 2021
@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

Oh nice catch! Removed!

Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

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

This is great! Thanks for sticking through it, @tekktrik!

@kattni kattni merged commit 08e2843 into adafruit:main Nov 5, 2021
@tekktrik
Copy link
Member Author

tekktrik commented Nov 5, 2021

My pleasure! Thanks for all the assistance on these!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Type Annotations
4 participants