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

circuitpython_stubs: Use circuitpython_typing for cp-specific typing #5760

Merged
merged 3 commits into from
Dec 22, 2021

Conversation

jepler
Copy link
Member

@jepler jepler commented Dec 21, 2021

Installing stubs for a module named _typing seems like it may create problems in the future, but this name should be much safer.

@dhalbert
Copy link
Collaborator

dhalbert commented Dec 21, 2021

For interest, ReadableBuffer and the like were inspired by the discussion in python/typing#593. They are also defined in https://github.com/python/typeshed/tree/master/stdlib/_typeshed.

I am kind of surprised python/typing#593 is still an open issue.

jepler and others added 2 commits December 22, 2021 11:14
Installing stubs for a module named `_typing` seems like a dubious
decision.
These diagnostics occurred, but weren't treated as errors:
```
[WARN] Missing return type: alphablend on line 38
[WARN] Missing argument type: dest_bitmap on line 38
[WARN] Missing argument type: source_bitmap_1 on line 38
[WARN] Missing argument type: source_bitmap_2 on line 38
```
@jepler jepler force-pushed the rename_under_typing branch from b7acaed to fb79d1c Compare December 22, 2021 17:16
note that per the https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
specify "3" for the latest python version (not 3.x as on github actions)
@jepler
Copy link
Member Author

jepler commented Dec 22, 2021

This also bumps sphinx to current versions so that it should work with 3.10

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.

Looks good to me! Thank you!

@tannewt tannewt merged commit 674c845 into adafruit:main Dec 22, 2021
hathach pushed a commit to hathach/circuitpython that referenced this pull request Dec 23, 2021
Commit 4173950 removed automatic building
of mpy-cross, which rebuilt it whenever any of its dependent source files
changed.

But needing to build mpy-cross, and not knowing how, is a frequent issue.
This commit aims to help by automatically building mpy-cross only if it
doesn't exist.  For Makefiles it uses an order-only prerequisite, while
for CMake it uses a custom command.

If MICROPY_MPYCROSS (which is what makemanifest.py uses to locate the
mpy-cross executable) is defined in the environment then automatic build
will not be attempted, allowing a way to prevent this auto-build if needed.

Thanks to Trammell Hudson aka @osresearch for the original idea; see adafruit#5760.

Signed-off-by: Damien George <[email protected]>
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.

3 participants