Revise stub merge architecture to provide detailed parameter type hints and return types. #2157
Annotations
8 errors
Test stubber:
tests/freeze/freezer_mpy_test.py#L75
test_manifest_uasync
AssertionError: task.py must be included in uasyncio
assert False
+ where False = <bound method Path.exists of PosixPath('/tmp/pytest-of-runner/pytest-0/test_manifest_uasync0/esp32/GENERIC/uasyncio/task.py')>()
+ where <bound method Path.exists of PosixPath('/tmp/pytest-of-runner/pytest-0/test_manifest_uasync0/esp32/GENERIC/uasyncio/task.py')> = (((PosixPath('/tmp/pytest-of-runner/pytest-0/test_manifest_uasync0') / 'esp32') / 'GENERIC') / 'uasyncio/task.py').exists
|
Test stubber:
tests/freeze/get_mpy_test.py#L63
test_get_mpy[v1.24.1-68-1426]
AssertionError: there should be >= 1426 frozen modules
assert 979 >= 1426
+ where 979 = len([PosixPath('/tmp/pytest-of-runner/pytest-0/test_get_mpy_v1_24_1_68_1426_0/micropython-v1_24_1-frozen/mimxrt/MIMXRT1050_EVK/dht.py'), PosixPath('/tmp/pytest-of-runner/pytest-0/test_get_mpy_v1_24_1_68_1426_0/micropython-v1_24_1-frozen/mimxrt/MIMXRT1050_EVK/webrepl_setup.py'), PosixPath('/tmp/pytest-of-runner/pytest-0/test_get_mpy_v1_24_1_68_1426_0/micropython-v1_24_1-frozen/mimxrt/MIMXRT1050_EVK/urequests.py'), PosixPath('/tmp/pytest-of-runner/pytest-0/test_get_mpy_v1_24_1_68_1426_0/micropython-v1_24_1-frozen/mimxrt/MIMXRT1050_EVK/ds18x20.py'), PosixPath('/tmp/pytest-of-runner/pytest-0/test_get_mpy_v1_24_1_68_1426_0/micropython-v1_24_1-frozen/mimxrt/MIMXRT1050_EVK/ntptime.py'), PosixPath('/tmp/pytest-of-runner/pytest-0/test_get_mpy_v1_24_1_68_1426_0/micropython-v1_24_1-frozen/mimxrt/MIMXRT1050_EVK/onewire.py'), ...])
|
Test stubber:
tests/merge/test_candidates.py#L76
test_merge_candidates[10-tests/data/stub_merge/micropython-v1_24_1-docstubs-tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO-55]
AssertionError: assert 51 == 55
+ where 51 = len([MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO/_asyncio.pyi'), source=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/asyncio/task.pyi'), target_pkg='_asyncio', source_pkg='asyncio.task', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO/_thread.pyi'), source=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/_thread/__init__.pyi'), target_pkg='_thread', source_pkg='_thread.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO/array.pyi'), source=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/array/__init__.pyi'), target_pkg='array', source_pkg='array.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO/binascii.pyi'), source=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/binascii/__init__.pyi'), target_pkg='binascii', source_pkg='binascii.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO/cmath.pyi'), source=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/cmath/__init__.pyi'), target_pkg='cmath', source_pkg='cmath.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-rp2-RPI_PICO/collections.pyi'), source=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/collections/__init__.pyi'), target_pkg='collections', source_pkg='collections.__init__', is_match=True), ...])
|
Test stubber:
tests/merge/test_candidates.py#L76
test_merge_candidates[23-repos/micropython-stubs/micropython-reference-tests/data/stub_merge/micropython-v1_24_1-docstubs-94]
AssertionError: assert 92 == 94
+ where 92 = len([MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/_thread/__init__.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/_thread/__init__.pyi'), target_pkg='_thread.__init__', source_pkg='_thread.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/array/__init__.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/array/__init__.pyi'), target_pkg='array.__init__', source_pkg='array.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/asyncio/__init__.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/asyncio/__init__.pyi'), target_pkg='asyncio.__init__', source_pkg='asyncio.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/binascii/__init__.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/binascii/__init__.pyi'), target_pkg='binascii.__init__', source_pkg='binascii.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/bluetooth/__init__.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/bluetooth/__init__.pyi'), target_pkg='bluetooth.__init__', source_pkg='bluetooth.__init__', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/btree/__init__.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/btree/__init__.pyi'), target_pkg='btree.__init__', source_pkg='btree.__init__', is_match=True), ...])
|
Test stubber:
tests/merge/test_candidates.py#L76
test_merge_candidates[24-repos/micropython-stubs/micropython-reference-tests/data/stub_merge/micropython-v1_24_1-docstubs/machine-17]
AssertionError: assert 18 == 17
+ where 18 = len([MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/machine/ADC.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/machine/ADC.pyi'), target_pkg='machine.ADC', source_pkg='machine.ADC', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/machine/ADCBlock.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/machine/ADCBlock.pyi'), target_pkg='machine.ADCBlock', source_pkg='machine.ADCBlock', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/machine/ADCWiPy.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/machine/ADCWiPy.pyi'), target_pkg='machine.ADCWiPy', source_pkg='machine.ADCWiPy', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/machine/I2C.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/machine/I2C.pyi'), target_pkg='machine.I2C', source_pkg='machine.I2C', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/machine/I2S.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/machine/I2S.pyi'), target_pkg='machine.I2S', source_pkg='machine.I2S', is_match=True), MergeMatch(target=PosixPath('tests/data/stub_merge/micropython-v1_24_1-docstubs/machine/PWM.pyi'), source=PosixPath('repos/micropython-stubs/micropython-reference/machine/PWM.pyi'), target_pkg='machine.PWM', source_pkg='machine.PWM', is_match=True), ...])
|
Test stubber:
tests/publish/test_package.py#L100
test_create_package[v1.24.1-rp2-RPI_PICO]
AssertionError: new package must still have 3 stub sources
assert 2 == 3
+ where 2 = len([(Merged stubs, PosixPath('micropython-v1_24_1-rp2-RPI_PICO-merged')), (Core stubs, PosixPath('micropython-core'))])
|
Test stubber:
tests/publish/test_package.py#L100
test_create_package[v1.24.1-rp2-RPI_PICOW]
AssertionError: new package must still have 3 stub sources
assert 2 == 3
+ where 2 = len([(Merged stubs, PosixPath('micropython-v1_24_1-rp2-RPI_PICOW-merged')), (Core stubs, PosixPath('micropython-core'))])
|
Test stubber
Process completed with exit code 1.
|
Loading