-
Notifications
You must be signed in to change notification settings - Fork 23
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
Reference/rp2 #779
Open
Josverl
wants to merge
63
commits into
main
Choose a base branch
from
reference/rp2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Reference/rp2 #779
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…implementation details of `_rp2`. Signed-off-by: Jos Verlinde <[email protected]>
…ion. - 0 errors, 10 warnings, 2 informations - 0 errors, 0 warnings, 2 informations Needs manual copy of FOO = const(0) Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Also see: #775 Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
…treamWriter classes Signed-off-by: Jos Verlinde <[email protected]>
…dules Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]> (cherry picked from commit 61d8f79)
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
…n-stubs into reference/rp2
…compatibility Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]> (cherry picked from commit 61d8f79) Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
…ation Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
…version to 1.24.1 Signed-off-by: Jos Verlinde <[email protected]>
…script Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
…nd asyncio tasks stubs Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
… tests Signed-off-by: Jos Verlinde <[email protected]>
…cture Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
This was a (long standing) workaround for missing methods, and has now been replaced by merges from the micropython stub in reference-stubs Signed-off-by: Jos Verlinde <[email protected]>
These are based on the reference merge refactor of stubber. Signed-off-by: Jos Verlinde <[email protected]>
These are based on the reference merge refactor of stubber. Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Josverl
force-pushed
the
reference/rp2
branch
2 times, most recently
from
January 29, 2025 21:20
a0f3759
to
60a9d1d
Compare
Signed-off-by: Jos Verlinde <[email protected]>
Josverl
force-pushed
the
reference/rp2
branch
from
January 29, 2025 21:23
60a9d1d
to
9357680
Compare
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Signed-off-by: Jos Verlinde <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the type stubs and type aliases for various MicroPython modules. The most important changes include the addition of new type stubs, updates to existing type aliases, and improvements to the documentation.
refactor asyncio
New type stubs and classes:
micropython-reference/_mpy_shed/IRQs.pyi
: Added type stubs for IRQ object types used in various modules, including_IRQ_ESP32
,_IRQ_RP2
, and_IRQ_PYB
.micropython-reference/_mpy_shed/blockdevice.pyi
: Introduced the_BlockDeviceProtocol
class as a template for block device classes, with detailed documentation and method overloads.micropython-reference/_mpy_shed/neopixelbase.pyi
: Added the_NeoPixelBase
class to include missing methods for the NeoPixel class.micropython-reference/_mpy_shed/pathlike.pyi
: Added thePathLike
class, copied from typeshed, to support path-like objects in MicroPython.micropython-reference/_mpy_shed/subscriptable.pyi
: Introduced theSubscriptable
protocol for objects that are subscriptable and of finite length.Updates to existing type aliases:
micropython-reference/_mpy_shed/io_modes.pyi
: Updated type aliases for MicroPython-specific modes used in theopen
function, changing fromFinal
toTypeAlias
. [1] [2] [3]Improvements to documentation:
micropython-reference/_mpy_shed/io_mp.pyi
: Added comments and documentation for IO-related classes and methods, includingIOBase
andTextIOWrapper
.Other changes:
micropython-reference/_rp2/__init__.pyi
: Updated import statements to use therp2
module directly and removed outdated module information.This pull request includes several changes to the MicroPython type stubs to improve type checking and documentation. The most important changes include the addition of new type aliases and protocol classes, updates to existing type aliases, and the addition of new class definitions.Additions and Updates to Type Aliases and Protocols:
micropython-reference/_mpy_shed/io_modes.pyi
: Changed type definitions fromFinal
toTypeAlias
for various_OpenTextMode
and_OpenBinaryMode
types. [1] [2] [3]micropython-reference/_mpy_shed/blockdevice.pyi
: Added theAbstractBlockDev
class as a protocol to define the block device interface for MicroPython.New Class Definitions:
micropython-reference/_mpy_shed/IRQs.pyi
: Added_IRQ_ESP32
,_IRQ_RP2
, and_IRQ_PYB
classes along with their type aliases.micropython-reference/_mpy_shed/neopixelbase.pyi
: Added the_NeoPixelBase
class to include missing methods for the NeoPixel class.micropython-reference/_mpy_shed/subscriptable.pyi
: Added theSubscriptable
protocol to define objects that are subscriptable and of finite length.Imports and Documentation:
micropython-reference/_mpy_shed/io_mp.pyi
: Added imports from_io
and included extensive commented-out alternative implementations for IO base classes.micropython-reference/_mpy_shed/pathlike.pyi
: Added thePathLike
protocol class, copied from typeshed.Code Refactoring:
micropython-reference/_rp2/__init__.pyi
: Refactored imports to use absolute imports from therp2
module.