Skip to content
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

Adding type hints #3107

Merged
merged 69 commits into from
Jul 22, 2020
Merged

Adding type hints #3107

merged 69 commits into from
Jul 22, 2020

Conversation

evaherrada
Copy link

No description provided.

@evaherrada evaherrada requested a review from tannewt July 2, 2020 13:38
@evaherrada evaherrada linked an issue Jul 2, 2020 that may be closed by this pull request
56 tasks
shared-bindings/busio/I2C.c Outdated Show resolved Hide resolved
shared-bindings/busio/I2C.c Outdated Show resolved Hide resolved
shared-bindings/aesio/aes.c Outdated Show resolved Hide resolved
shared-bindings/aesio/aes.c Outdated Show resolved Hide resolved
shared-bindings/analogio/AnalogOut.c Outdated Show resolved Hide resolved
shared-bindings/audiobusio/PDMIn.c Outdated Show resolved Hide resolved
shared-bindings/audiocore/WaveFile.c Outdated Show resolved Hide resolved
shared-bindings/busio/SPI.c Outdated Show resolved Hide resolved
shared-bindings/busio/SPI.c Outdated Show resolved Hide resolved
shared-bindings/busio/UART.c Outdated Show resolved Hide resolved
shared-bindings/busio/UART.c Outdated Show resolved Hide resolved
shared-bindings/busio/UART.c Outdated Show resolved Hide resolved
@evaherrada evaherrada requested a review from tannewt July 2, 2020 17:29
@dhalbert
Copy link
Collaborator

dhalbert commented Jul 2, 2020

@dherrada If I understand correctly, I think @tannewt agrees with replacing the various bytestring unions with ReadableBuffer and WriteableBuffer, so that would be another commit before a re-review. Thanks.

@evaherrada
Copy link
Author

@dhalbert Ah, I hadn't seen that. Sure thing

@evaherrada
Copy link
Author

Should I be doing ulab?

@evaherrada evaherrada requested a review from dhalbert July 3, 2020 20:05
@dhalbert
Copy link
Collaborator

dhalbert commented Jul 3, 2020

Should I be doing ulab?

I think that would be done in the ulab repo. @jepler and @v923z are the ones to consult.

@jepler
Copy link
Member

jepler commented Jul 4, 2020

Right now the .pyi files of ulab live in CircuitPython. @v923z and I have discussed the possibility of moving them, and we'd like for it to happen, but I don't know whether he's started any of that work. Can you leave it for a future PR until there's a firm answer?

@v923z
Copy link

v923z commented Jul 6, 2020

Right now the .pyi files of ulab live in CircuitPython. @v923z and I have discussed the possibility of moving them, and we'd like for it to happen, but I don't know whether he's started any of that work.

No, I haven't yet had time for that, but it is definitely high on my list.

@hlovatt
Copy link

hlovatt commented Jul 8, 2020 via email

@tannewt
Copy link
Member

tannewt commented Jul 8, 2020

@hlovatt Thanks for the explanation! That's super helpful. I had never thought about that case.

@tannewt
Copy link
Member

tannewt commented Jul 13, 2020

@dherrada What is the status of this PR? Are you waiting on someone?

@dhalbert
Copy link
Collaborator

These examples=are still unresolved, I believe, and a bunch more above in displayio and framebuffer. You have to open the "hidden" conversations to see them.

(screenshots below: don't try to click :) )
image
image

@v923z
Copy link

v923z commented Jul 14, 2020

@dherrada What is the status of this PR? Are you waiting on someone?

If it is me, let me know! ulab was brought up earlier, but I don't know, whether the stubs are a blocking issue.

@evaherrada
Copy link
Author

@v923z Ar far as ulab goes, I don't believe I'm blocked on that.

@evaherrada
Copy link
Author

@tannewt Yeah, pretty much what @dhalbert said

@tannewt
Copy link
Member

tannewt commented Jul 15, 2020

Ok, I replied on those two. They got lost because this PR is huge. Please make many smaller PRs next time. Thanks!

@dhalbert
Copy link
Collaborator

@tannewt if you open up all the hidden conversations, beyond the two screenshots, you'll see more that have to do with displayio types.

There doesn't seem to be a way to link to conversations.

@evaherrada
Copy link
Author

evaherrada commented Jul 16, 2020

Please make many smaller PRs next time.

@tannewt Will do.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Ok, I've added more comments. @dherrada please mention me on anything else that you need me to clarify. Thanks!

shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/Group.c Outdated Show resolved Hide resolved
shared-bindings/displayio/TileGrid.c Outdated Show resolved Hide resolved
@evaherrada
Copy link
Author

@tannewt Thanks. I just made all of those requested changes that you clarified and tagged you on a few more that I'm still unsure about.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Tags worked well! Thank you!

shared-bindings/gnss/GNSS.c Outdated Show resolved Hide resolved
shared-bindings/framebufferio/FramebufferDisplay.c Outdated Show resolved Hide resolved
shared-bindings/framebufferio/FramebufferDisplay.c Outdated Show resolved Hide resolved
shared-bindings/fontio/BuiltinFont.c Outdated Show resolved Hide resolved
@evaherrada evaherrada requested a review from tannewt July 17, 2020 18:54
tannewt
tannewt previously approved these changes Jul 17, 2020
Copy link
Member

@tannewt tannewt 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! Thank you!

@tannewt
Copy link
Member

tannewt commented Jul 21, 2020

@dherrada Can you take a look at the conflict here? I just merge some other improvements to extract_pyi and this needs an update. Thanks!

@evaherrada
Copy link
Author

@tannewt Sure. I do have a bunch of changes to extract_pyi that I did locally and haven't pushed yet, but they should be in a separate PR.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Ok, thanks! Looks good!

@tannewt tannewt merged commit 02b71e0 into adafruit:main Jul 22, 2020
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.

Add type hints
6 participants