Skip to content

Commit

Permalink
update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
Josverl committed Jul 24, 2024
1 parent 97ccca8 commit 320ad91
Show file tree
Hide file tree
Showing 79 changed files with 1,483 additions and 1,231 deletions.
1,992 changes: 996 additions & 996 deletions all_modules.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"firmware": "micropython-v1_24_0_preview",
"nodename": "micropython",
"version": "v1.24.0-preview",
"release": "v1.24.0-preview-121-g444d7bacb",
"release": "v1.24.0-preview-132-gba9853345",
"sysname": "micropython"
},
"stubber": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ def bitstream(

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down Expand Up @@ -202,7 +208,7 @@ def reset_cause() -> int:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "micropython-esp32-esp32_generic-stubs"
version = "1.24.0a121"
version = "1.24.0a132"
description = "MicroPython stubs"
authors = [
"josverl <josverl@users.noreply.github.com>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ def bitstream(

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down Expand Up @@ -202,7 +208,7 @@ def reset_cause() -> int:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"firmware": "micropython-v1_24_0_preview",
"nodename": "micropython",
"version": "v1.24.0-preview",
"release": "v1.24.0-preview-121-g444d7bacb",
"release": "v1.24.0-preview-132-gba9853345",
"sysname": "micropython"
},
"stubber": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def disable_irq() -> Incomplete:
def dht_readinto(*args, **kwargs) -> Incomplete: ...
def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down Expand Up @@ -148,10 +148,16 @@ def reset_cause() -> int:

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "micropython-esp32-esp32_generic_c3-stubs"
version = "1.24.0a121"
version = "1.24.0a132"
description = "MicroPython stubs"
authors = [
"josverl <josverl@users.noreply.github.com>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def disable_irq() -> Incomplete:
def dht_readinto(*args, **kwargs) -> Incomplete: ...
def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down Expand Up @@ -148,10 +148,16 @@ def reset_cause() -> int:

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"firmware": "micropython-v1_24_0_preview",
"nodename": "micropython",
"version": "v1.24.0-preview",
"release": "v1.24.0-preview-121-g444d7bacb",
"release": "v1.24.0-preview-132-gba9853345",
"sysname": "micropython"
},
"stubber": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def reset_cause() -> int:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down Expand Up @@ -209,10 +209,16 @@ def freq(hz: Optional[Any] = None) -> Incomplete:

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "micropython-esp32-esp32_generic_s3-stubs"
version = "1.24.0a121"
version = "1.24.0a132"
description = "MicroPython stubs"
authors = [
"josverl <josverl@users.noreply.github.com>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def reset_cause() -> int:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down Expand Up @@ -209,10 +209,16 @@ def freq(hz: Optional[Any] = None) -> Incomplete:

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"firmware": "micropython-v1_24_0_preview",
"nodename": "micropython",
"version": "v1.24.0-preview",
"release": "v1.24.0-preview-121-g444d7bacb",
"release": "v1.24.0-preview-132-gba9853345",
"sysname": "micropython"
},
"stubber": {
Expand Down
16 changes: 11 additions & 5 deletions publish/micropython-v1_24_0_preview-esp32-stubs/machine.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ def bitstream(

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down Expand Up @@ -202,7 +208,7 @@ def reset_cause() -> int:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "micropython-esp32-stubs"
version = "1.24.0a121"
version = "1.24.0a132"
description = "MicroPython stubs"
authors = [
"josverl <josverl@users.noreply.github.com>",
Expand Down
16 changes: 11 additions & 5 deletions publish/micropython-v1_24_0_preview-esp32-stubs/umachine.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ def bitstream(

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down Expand Up @@ -202,7 +208,7 @@ def reset_cause() -> int:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"firmware": "micropython-v1_24_0_preview",
"nodename": "micropython",
"version": "v1.24.0-preview",
"release": "v1.24.0-preview-121-g444d7bacb",
"release": "v1.24.0-preview-132-gba9853345",
"sysname": "micropython"
},
"stubber": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def soft_reset() -> NoReturn:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down Expand Up @@ -125,10 +125,16 @@ def time_pulse_us(

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "micropython-esp8266-esp8266_generic-stubs"
version = "1.24.0a121"
version = "1.24.0a132"
description = "MicroPython stubs"
authors = [
"josverl <josverl@users.noreply.github.com>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def soft_reset() -> NoReturn:

def sleep() -> Incomplete:
"""
``Note:`` This function is deprecated, use `lightsleep()` instead with no arguments.
``Note:`` This function is deprecated, use :func:`lightsleep()` instead with no arguments.
"""
...

Expand Down Expand Up @@ -125,10 +125,16 @@ def time_pulse_us(

def idle() -> Incomplete:
"""
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (on many ports this includes system timer
interrupt occurring at regular intervals on the order of millisecond).
Gates the clock to the CPU, useful to reduce power consumption at any time
during short or long periods. Peripherals continue working and execution
resumes as soon as any interrupt is triggered, or at most one millisecond
after the CPU was paused.
It is recommended to call this function inside any tight loop that is
continuously checking for an external change (i.e. polling). This will reduce
power consumption without significantly impacting performance. To reduce
power consumption further then see the :func:`lightsleep`,
:func:`time.sleep()` and :func:`time.sleep_ms()` functions.
"""
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"firmware": "micropython-v1_24_0_preview",
"nodename": "micropython",
"version": "v1.24.0-preview",
"release": "v1.24.0-preview-121-g444d7bacb",
"release": "v1.24.0-preview-132-gba9853345",
"sysname": "micropython"
},
"stubber": {
Expand Down
Loading

0 comments on commit 320ad91

Please sign in to comment.