micropython-stubber 1.24.2__py3-none-any.whl → 1.24.4.post1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.24.4.post1.dist-info}/METADATA +7 -28
  2. micropython_stubber-1.24.4.post1.dist-info/RECORD +107 -0
  3. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.24.4.post1.dist-info}/WHEEL +1 -1
  4. stubber/__init__.py +1 -1
  5. stubber/board/createstubs_db.py +1 -1
  6. stubber/board/createstubs_mem.py +1 -1
  7. stubber/bulk/mcu_stubber.py +1 -1
  8. stubber/codemod/board.py +1 -1
  9. stubber/codemod/enrich.py +12 -10
  10. stubber/codemod/merge_docstub.py +83 -53
  11. stubber/codemod/visitors/type_helpers.py +143 -41
  12. stubber/commands/enrich_folder_cmd.py +17 -17
  13. stubber/commands/get_docstubs_cmd.py +22 -3
  14. stubber/commands/get_frozen_cmd.py +1 -0
  15. stubber/commands/merge_cmd.py +2 -4
  16. stubber/merge_config.py +5 -39
  17. stubber/minify.py +3 -3
  18. stubber/modcat.py +118 -0
  19. stubber/publish/merge_docstubs.py +21 -3
  20. stubber/publish/stubpackage.py +10 -27
  21. stubber/rst/lookup.py +3 -23
  22. stubber/stubs_from_docs.py +2 -1
  23. stubber/{cst_transformer.py → typing_collector.py} +34 -3
  24. micropython_stubber-1.24.2.dist-info/RECORD +0 -163
  25. mpflash/README.md +0 -220
  26. mpflash/libusb_flash.ipynb +0 -203
  27. mpflash/mpflash/__init__.py +0 -0
  28. mpflash/mpflash/add_firmware.py +0 -98
  29. mpflash/mpflash/ask_input.py +0 -236
  30. mpflash/mpflash/basicgit.py +0 -324
  31. mpflash/mpflash/bootloader/__init__.py +0 -2
  32. mpflash/mpflash/bootloader/activate.py +0 -60
  33. mpflash/mpflash/bootloader/detect.py +0 -82
  34. mpflash/mpflash/bootloader/manual.py +0 -101
  35. mpflash/mpflash/bootloader/micropython.py +0 -12
  36. mpflash/mpflash/bootloader/touch1200.py +0 -36
  37. mpflash/mpflash/cli_download.py +0 -129
  38. mpflash/mpflash/cli_flash.py +0 -224
  39. mpflash/mpflash/cli_group.py +0 -111
  40. mpflash/mpflash/cli_list.py +0 -87
  41. mpflash/mpflash/cli_main.py +0 -39
  42. mpflash/mpflash/common.py +0 -217
  43. mpflash/mpflash/config.py +0 -44
  44. mpflash/mpflash/connected.py +0 -96
  45. mpflash/mpflash/download.py +0 -364
  46. mpflash/mpflash/downloaded.py +0 -138
  47. mpflash/mpflash/errors.py +0 -9
  48. mpflash/mpflash/flash/__init__.py +0 -55
  49. mpflash/mpflash/flash/esp.py +0 -59
  50. mpflash/mpflash/flash/stm32.py +0 -19
  51. mpflash/mpflash/flash/stm32_dfu.py +0 -104
  52. mpflash/mpflash/flash/uf2/__init__.py +0 -104
  53. mpflash/mpflash/flash/uf2/boardid.py +0 -15
  54. mpflash/mpflash/flash/uf2/linux.py +0 -136
  55. mpflash/mpflash/flash/uf2/macos.py +0 -42
  56. mpflash/mpflash/flash/uf2/uf2disk.py +0 -12
  57. mpflash/mpflash/flash/uf2/windows.py +0 -43
  58. mpflash/mpflash/flash/worklist.py +0 -170
  59. mpflash/mpflash/list.py +0 -106
  60. mpflash/mpflash/logger.py +0 -41
  61. mpflash/mpflash/mpboard_id/__init__.py +0 -98
  62. mpflash/mpflash/mpboard_id/add_boards.py +0 -265
  63. mpflash/mpflash/mpboard_id/board.py +0 -37
  64. mpflash/mpflash/mpboard_id/board_id.py +0 -92
  65. mpflash/mpflash/mpboard_id/board_info.zip +0 -0
  66. mpflash/mpflash/mpboard_id/store.py +0 -48
  67. mpflash/mpflash/mpremoteboard/__init__.py +0 -271
  68. mpflash/mpflash/mpremoteboard/mpy_fw_info.py +0 -152
  69. mpflash/mpflash/mpremoteboard/runner.py +0 -140
  70. mpflash/mpflash/vendor/board_database.py +0 -185
  71. mpflash/mpflash/vendor/click_aliases.py +0 -91
  72. mpflash/mpflash/vendor/dfu.py +0 -165
  73. mpflash/mpflash/vendor/pico-universal-flash-nuke/LICENSE.txt +0 -21
  74. mpflash/mpflash/vendor/pico-universal-flash-nuke/universal_flash_nuke.uf2 +0 -0
  75. mpflash/mpflash/vendor/pydfu.py +0 -605
  76. mpflash/mpflash/vendor/readme.md +0 -14
  77. mpflash/mpflash/versions.py +0 -123
  78. mpflash/poetry.lock +0 -2869
  79. mpflash/pyproject.toml +0 -66
  80. mpflash/stm32_udev_rules.md +0 -63
  81. stubber/codemod/test_enrich.py +0 -87
  82. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.24.4.post1.dist-info}/LICENSE +0 -0
  83. {micropython_stubber-1.24.2.dist-info → micropython_stubber-1.24.4.post1.dist-info}/entry_points.txt +0 -0
@@ -1,15 +1,14 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: micropython-stubber
3
- Version: 1.24.2
3
+ Version: 1.24.4.post1
4
4
  Summary: Tooling to create and maintain stubs for MicroPython
5
5
  License: MIT
6
6
  Keywords: MicroPython,stubs,vscode,pyright,linting,static type check
7
7
  Author: Jos Verlinde
8
8
  Author-email: jos_verlinde@hotmail.com
9
- Requires-Python: >=3.9,<4.0
9
+ Requires-Python: >=3.9.2,<4.0
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
@@ -60,7 +59,6 @@ Description-Content-Type: text/markdown
60
59
  [![All Contributors](https://img.shields.io/badge/all_contributors-19-green.svg?style=flat-square)](#Contributions)
61
60
  <!-- break -->
62
61
  [![pytest stubber](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml)
63
- [![pytest mpflash](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml)
64
62
  [![Documentation Status](https://readthedocs.org/projects/micropython-stubber/badge/?version=latest)](https://micropython-stubber.readthedocs.io/en/latest/?badge=latest "Document build status badge")
65
63
  <!-- break -->
66
64
  [![Open in VSCode](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc
@@ -116,11 +114,8 @@ For more details how to use the stubs please refer to [the documentation on RTD]
116
114
  1. The sister-repo [**MicroPython-stubs**][stubs-repo] contains [all stubs][all-stubs] I have collected with the help of others, and which can be used directly.
117
115
  That repo also contains examples configuration files that can be easily adopted to your setup.
118
116
 
119
- 2. A second repo [micropy-stubs repo][stubs-repo2] maintained by BradenM, also contains stubs, but in a structure only used and distributed by the [micropy-cli](#using-micropy-cli) tool.
120
- You should use micropy-cli to consume stubs from that repo.
121
-
122
- The (stretch) goal is to create a VSCode add-in to simplify the configuration, and allow easy switching between different firmwares and versions.
123
-
117
+ 2. Micropython-stubber uses [MPFlash](https://github.com/Josverl/mpflash?tab=readme-ov-file) in some of its operations.
118
+ mpflash was formerly hosted in this repo, but has been moved to its own repo.
124
119
 
125
120
  ## Install and basic usage of the stubber tool
126
121
 
@@ -173,7 +168,7 @@ for more info see [**Renaming a branch**](https://docs.github.com/en/repositorie
173
168
 
174
169
  ## Licensing
175
170
 
176
- Both `MicroPython-Stubber` and `mpflash` are licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).
171
+ `MicroPython-Stubber` is licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).
177
172
 
178
173
 
179
174
  # Contributions
@@ -181,6 +176,7 @@ Both `MicroPython-Stubber` and `mpflash` are licensed under the MIT license, and
181
176
  <!--
182
177
  To add via the cli run the following command:
183
178
  npx all-contributors-cli add user things
179
+ npx all-contributors-cli generate
184
180
 
185
181
  - bug
186
182
  - tool
@@ -200,7 +196,7 @@ npx all-contributors-cli add user things
200
196
  <table>
201
197
  <tbody>
202
198
  <tr>
203
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs">🖍️</a> <a href="#test-josverl" title="Test">✅</a> <a href="#mpflash-josverl" title="mpflash">💥</a></td>
199
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">💻</a> <a href="#research-josverl" title="Research">🔬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">🤔</a> <a href="#content-josverl" title="Content">🖋</a> <a href="#stubs-josverl" title="MicroPython stubs">🖍️</a> <a href="#test-josverl" title="Test">✅</a></td>
204
200
  <td align="center" valign="top" width="14.28%"><a href="https://thonny.org/"><img src="https://avatars1.githubusercontent.com/u/46202078?v=4?s=100" width="100px;" alt="Thonny, Python IDE for beginners"/><br /><sub><b>Thonny, Python IDE for beginners</b></sub></a><br /><a href="#ideas-thonny" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-thonny" title="Research">🔬</a></td>
205
201
  <td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">🔣</a> <a href="#stubs-micropython" title="MicroPython stubs">🖍️</a></td>
206
202
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/microsoft/pyright"><img src="https://avatars.githubusercontent.com/u/6154722?v=4?s=100" width="100px;" alt="pyright"/><br /><sub><b>pyright</b></sub></a><br /><a href="#tool-pyright" title="Tools">🔧</a></td>
@@ -229,23 +225,6 @@ npx all-contributors-cli add user things
229
225
  <tr>
230
226
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/yegorLitvinov"><img src="https://avatars.githubusercontent.com/u/20367310?v=4?s=100" width="100px;" alt="Egor Litvinov"/><br /><sub><b>Egor Litvinov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AyegorLitvinov" title="Bug reports">🐛</a></td>
231
227
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/samskiter"><img src="https://avatars.githubusercontent.com/u/1271643?v=4?s=100" width="100px;" alt="Sam Duke"/><br /><sub><b>Sam Duke</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=samskiter" title="Code">💻</a></td>
232
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/shariltumin"><img src="https://avatars.githubusercontent.com/u/186120?v=4?s=100" width="100px;" alt="shariltumin"/><br /><sub><b>shariltumin</b></sub></a><br /><a href="#mpflash-shariltumin" title="mpflash">💥</a> <a href="#test-shariltumin" title="Test">✅</a></td>
233
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/mattytrentini"><img src="https://avatars.githubusercontent.com/u/194201?v=4?s=100" width="100px;" alt="Matt Trentini"/><br /><sub><b>Matt Trentini</b></sub></a><br /><a href="#mpflash-mattytrentini" title="mpflash">💥</a> <a href="#test-mattytrentini" title="Test">✅</a></td>
234
- <td align="center" valign="top" width="14.28%"><a href="http://scruss.com/blog/"><img src="https://avatars.githubusercontent.com/u/425706?v=4?s=100" width="100px;" alt="Stewart Russell"/><br /><sub><b>Stewart Russell</b></sub></a><br /><a href="#mpflash-scruss" title="mpflash">💥</a> <a href="#test-scruss" title="Test">✅</a></td>
235
- <td align="center" valign="top" width="14.28%"><a href="https://www.gitlab.com/alelec"><img src="https://avatars.githubusercontent.com/u/3318786?v=4?s=100" width="100px;" alt="Andrew Leech"/><br /><sub><b>Andrew Leech</b></sub></a><br /><a href="#mpflash-andrewleech" title="mpflash">💥</a> <a href="#test-andrewleech" title="Test">✅</a></td>
236
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/wovo"><img src="https://avatars.githubusercontent.com/u/9039468?v=4?s=100" width="100px;" alt="Wouter van Ooijen"/><br /><sub><b>Wouter van Ooijen</b></sub></a><br /><a href="#mpflash-wovo" title="mpflash">💥</a> <a href="#test-wovo" title="Test">✅</a></td>
237
- </tr>
238
- <tr>
239
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/shaneapowell"><img src="https://avatars.githubusercontent.com/u/12113620?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shaneapowell" title="mpflash">💥</a> <a href="#test-shaneapowell" title="Test">✅</a></td>
240
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/robert-hh"><img src="https://avatars.githubusercontent.com/u/12476868?v=4?s=100" width="100px;" alt="Robert Hammelrath"/><br /><sub><b>Robert Hammelrath</b></sub></a><br /><a href="#mpflash-robert-hh" title="mpflash">💥</a> <a href="#test-robert-hh" title="Test">✅</a></td>
241
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/beetlegigg"><img src="https://avatars.githubusercontent.com/u/34552737?v=4?s=100" width="100px;" alt="Bg"/><br /><sub><b>Bg</b></sub></a><br /><a href="#mpflash-beetlegigg" title="mpflash">💥</a> <a href="#test-beetlegigg" title="Test">✅</a></td>
242
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/rkompass"><img src="https://avatars.githubusercontent.com/u/90282516?v=4?s=100" width="100px;" alt="Raul Kompaß"/><br /><sub><b>Raul Kompaß</b></sub></a><br /><a href="#mpflash-rkompass" title="mpflash">💥</a> <a href="#test-rkompass" title="Test">✅</a></td>
243
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/garryp4"><img src="https://avatars.githubusercontent.com/u/96994876?v=4?s=100" width="100px;" alt="garryp4"/><br /><sub><b>garryp4</b></sub></a><br /><a href="#mpflash-garryp4" title="mpflash">💥</a> <a href="#test-garryp4" title="Test">✅</a></td>
244
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/shanepowell-ast"><img src="https://avatars.githubusercontent.com/u/102747617?v=4?s=100" width="100px;" alt="Shane Powell"/><br /><sub><b>Shane Powell</b></sub></a><br /><a href="#mpflash-shanepowell-ast" title="mpflash">💥</a> <a href="#test-shanepowell-ast" title="Test">✅</a></td>
245
- <td align="center" valign="top" width="14.28%"><a href="https://andypiper.org/"><img src="https://avatars.githubusercontent.com/u/552452?v=4?s=100" width="100px;" alt="Andy Piper"/><br /><sub><b>Andy Piper</b></sub></a><br /><a href="#mpflash-andypiper" title="mpflash">💥</a> <a href="#test-andypiper" title="Test">✅</a></td>
246
- </tr>
247
- <tr>
248
- <td align="center" valign="top" width="14.28%"><a href="https://github.com/DavesCodeMusings"><img src="https://avatars.githubusercontent.com/u/61114342?v=4?s=100" width="100px;" alt="David Horton"/><br /><sub><b>David Horton</b></sub></a><br /><a href="#mpflash-DavesCodeMusings" title="mpflash">💥</a> <a href="#test-DavesCodeMusings" title="Test">✅</a></td>
249
228
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/hlovatt"><img src="https://avatars.githubusercontent.com/u/8424169?v=4?s=100" width="100px;" alt="Howard Lovatt"/><br /><sub><b>Howard Lovatt</b></sub></a><br /><a href="#stubs-hlovatt" title="MicroPython stubs">🖍️</a> <a href="#research-hlovatt" title="Research">🔬</a></td>
250
229
  <td align="center" valign="top" width="14.28%"><a href="https://virtualwolf.org/"><img src="https://avatars.githubusercontent.com/u/1644623?v=4?s=100" width="100px;" alt="VirtualWolf"/><br /><sub><b>VirtualWolf</b></sub></a><br /><a href="#test-VirtualWolf" title="Test">✅</a></td>
251
230
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/lukaskremla"><img src="https://avatars.githubusercontent.com/u/155779787?v=4?s=100" width="100px;" alt="Lukas Kremla"/><br /><sub><b>Lukas Kremla</b></sub></a><br /><a href="#test-lukaskremla" title="Test">✅</a></td>
@@ -0,0 +1,107 @@
1
+ stubber/__init__.py,sha256=lRYnHA4DwmdNy9mE4Lz5m-QROVtFlsF22Vk74kEGcC8,49
2
+ stubber/board/board_info.csv,sha256=K2VSmfR013fN-oJWkQUmiQ19w09dVwJHDquPy6QmMhY,8627
3
+ stubber/board/boot.py,sha256=XjWlKErU5nI1HJSugXIP_3hlwgRQboE6sJrpcbSygnk,1120
4
+ stubber/board/createstubs.py,sha256=w_n9qm7o26Be_r2vOLiRgGq87Ty5Ei7wc8hG4CiPQl0,34187
5
+ stubber/board/createstubs_db.py,sha256=_SuvM2PvxKdDmByTkiUzP2hpu34KTqMAWDelGT9qcV0,31075
6
+ stubber/board/createstubs_db_min.py,sha256=1VHZcuGYPhO3xysjJCGDSM3jbFn87pSZOLeVVYeaQQI,11850
7
+ stubber/board/createstubs_db_mpy.mpy,sha256=9GQDfLlJHPepAYibiDUTK0S92YJtHDrU-r_fel86bjs,9890
8
+ stubber/board/createstubs_lvgl.py,sha256=CTe7eq1ACRK_JJxavaqDD8znn29nSWJiHHTZ_ps6EhM,27217
9
+ stubber/board/createstubs_lvgl_min.py,sha256=jLkWYmeboI2A8feMC7pT7cYWttLejQTuX7WAEZCylhw,27207
10
+ stubber/board/createstubs_lvgl_mpy.mpy,sha256=ex-nlq2V5e8anQBJvRWEEc-FzU7nlwg5NSrZ8vOadIA,9267
11
+ stubber/board/createstubs_mem.py,sha256=liTGFKc35mxZgUa7NT2Usk6mJmgnIbwP52hnQgrW6ig,29411
12
+ stubber/board/createstubs_mem_min.py,sha256=4Lx-ssDzcMVit_GXLGGuSOIiDp0z08ihyqkE-mtZ9io,11396
13
+ stubber/board/createstubs_mem_mpy.mpy,sha256=vnS3xs7NTz76AWtgQgCLGFbhM-Txx2SaetcZMpCZfX8,9469
14
+ stubber/board/createstubs_min.py,sha256=co3dloHX2LnCuztTzmxHdwAJAgQAZqTPUM-L8dp7dl0,14138
15
+ stubber/board/createstubs_mpy.mpy,sha256=dEWIQfFG4hMo87u7JeWbBWglC__-Kv8goYklzIK7DWI,12805
16
+ stubber/board/fw_info.py,sha256=6AQbN3jtQgllqWQYl4e-63KeEtV08EXk8_JnM6XBkvo,4554
17
+ stubber/board/info.py,sha256=b7SOPZHVsVhaayKCwVkFZlYu0BW-UFI7LuG1Eop9480,5629
18
+ stubber/board/main.py,sha256=f6V3tdt6sPZVLuwemT-NLuK9GySfW2c2J6PJMOOWQQw,413
19
+ stubber/board/modulelist.txt,sha256=rZ6sn8CXjVYRKCcM0rlurfiIwsDuWhzSPOleAmoxCCI,2945
20
+ stubber/board/pyrightconfig.json,sha256=6oHS4aDOfwKBAFeUPsCGJzEXpUgBZsPaF0M4P-N26D4,1376
21
+ stubber/bulk/mcu_stubber.py,sha256=J-iuozAfsgtVdZ-yUVd1DR9XxpkGuENsCkp_AhIhTP0,15733
22
+ stubber/codemod/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ stubber/codemod/_partials/__init__.py,sha256=LVJ-QkEKlc5IqOZ-bYrNXWRd9J5eolsTR_kRTyS9p6w,1430
24
+ stubber/codemod/_partials/db_main.py,sha256=ZKzxV0LOEyHu1zcsBr4xRf9i1a4Jyh808sdbmcmkrWE,4003
25
+ stubber/codemod/_partials/lvgl_main.py,sha256=9BAJP6P1R2SQVbNya2ujes35eATa56D_Ri2_PjeRBq0,1964
26
+ stubber/codemod/_partials/modules_reader.py,sha256=dJj-H0ncUWVtilSyohQ-dyiUZOjQObds_-llwy_LkYU,2046
27
+ stubber/codemod/add_comment.py,sha256=CZMjtKO9aarZo1E60QXo80CLJAH05z_ylK6Vvjvb0ls,1965
28
+ stubber/codemod/add_method.py,sha256=fZH-RGi_pzFpi3tF_0AMDbA9A94dlgXMrc3ItpY3Ylw,2609
29
+ stubber/codemod/board.py,sha256=dP24t9RO_klQZS7Yqiwt7Rh85B76s6GC2r4B7tVzEn0,11882
30
+ stubber/codemod/enrich.py,sha256=YB-tXo_UjeVboG2uPAG8d1g81STdhWL4NvCfZ6YPduk,12928
31
+ stubber/codemod/merge_docstub.py,sha256=4G5MwF1FhgJ2UR__vDtKo96uSNwvdy1q3OkYl78yuic,23352
32
+ stubber/codemod/modify_list.py,sha256=xrpFBKug273D9E02owUheZD418BvsIHIZCFj4YDjTxU,2118
33
+ stubber/codemod/utils.py,sha256=3hk7pwyS4KZxewrWLwbOrdA5ympbum-kfL0ZN-M7rlo,2459
34
+ stubber/codemod/visitors/type_helpers.py,sha256=UdYKsKDTqzHmPNBuWK1lY0sboXrm7RIY0B4FHLtWo3s,10572
35
+ stubber/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
+ stubber/commands/build_cmd.py,sha256=Zseci4EHxJuiiy7YS-ucmMokDrVLe4j6fPs-PSbwq1k,2813
37
+ stubber/commands/cli.py,sha256=HY4CqB0PPTmzew2sABNsHeNKDPblcGzzbmvtF46oVsU,1556
38
+ stubber/commands/clone_cmd.py,sha256=QyKnU3calhVx-rhlfzbeZbqgBFFTzfoYeKHNH9qmfgM,2781
39
+ stubber/commands/config_cmd.py,sha256=e8heX27MXfazLxMVtgjK4dsLCWhsoCfdeYGVoH3rqtA,1211
40
+ stubber/commands/enrich_folder_cmd.py,sha256=LDdSAfDlsAQAddYT9Rp3bFiF6maqA457AmMyWNXdXtg,2236
41
+ stubber/commands/get_core_cmd.py,sha256=Ua_10gdwOX9ceHY4SLV36esdTWbCwGtQ593A-qR_pgg,2323
42
+ stubber/commands/get_docstubs_cmd.py,sha256=OQAZn29pDmUDLbpOOyja0IGIxRCKAskY7UGcX90hAkQ,5179
43
+ stubber/commands/get_frozen_cmd.py,sha256=KgcOj-YjxChQcxCvEa-Rqq6_RW8RQteefAdYjoKEAZE,4251
44
+ stubber/commands/get_mcu_cmd.py,sha256=CTQVIoGqBx6gwUp1aH1gOysVFEZbeqMvpPb2WJA4EVQ,2807
45
+ stubber/commands/merge_cmd.py,sha256=0tKgvBiYjleXac0z5vDMxzvAgiZQUF0DafPqoIueKS8,1641
46
+ stubber/commands/publish_cmd.py,sha256=eo052T3k0YW6m0gJJ3hoZbchd0whMr74z3MudHKthIQ,3275
47
+ stubber/commands/stub_cmd.py,sha256=eqhZJ2cyt1-jPxSaywUP8Sn4hPbdCnMQp5TSnZji6gk,1216
48
+ stubber/commands/switch_cmd.py,sha256=yeK9rNkIl8WicheUGHnK5u7YrV5iR1KBEILVUfbOQtA,1866
49
+ stubber/commands/variants_cmd.py,sha256=Q7DjPElEfSHhDxAlvtiGHWv9e47QPSLYMIs0ScfI7AA,1296
50
+ stubber/data/board_info.csv,sha256=K2VSmfR013fN-oJWkQUmiQ19w09dVwJHDquPy6QmMhY,8627
51
+ stubber/data/board_info.json,sha256=jyvBN5seoxx7Z7B3UpvMn7H8xWCpmG4VtFSPb8PjmZI,58939
52
+ stubber/data/micropython_tags.csv,sha256=HQnzPN7jLmgKX3QvobsPMZa-xMb0exglriFziBjaRz8,1909
53
+ stubber/data/requirements-core-micropython.txt,sha256=6RQWWbLh8YVcD_l1-hjg6wX_Fm1LmNEwy5NExKJIkeg,1317
54
+ stubber/data/requirements-core-pycopy.txt,sha256=tW71l6FIuoQY1tuxkDgeN4Uw8IIp0YrlhhaaqSGSOA8,1051
55
+ stubber/downloader.py,sha256=L0ZgXv-0JfPgPpzDqP66q8Guu0QiN_vgWuB_t_lKmRA,1206
56
+ stubber/freeze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
+ stubber/freeze/common.py,sha256=GA8DaEBsWLTNvVCWZMmtI9i9Ih5aVzK5DfNWMoCbFa4,3306
58
+ stubber/freeze/freeze_folder.py,sha256=49rSh6LHbVweDM6QCoe8Pku0gyEOzz7nOtaivyJ56LE,2490
59
+ stubber/freeze/freeze_manifest_2.py,sha256=BNjjw30WhdI8I_L3rBRRGyoCDCk8O3-MZcM0AScSZBI,4455
60
+ stubber/freeze/get_frozen.py,sha256=ojxUO-Fiy-Tn49Tv_puQrBtZ0dxQEmWj2HfWmHmGODQ,5355
61
+ stubber/get_cpython.py,sha256=Qnug4TlytwrqBRXCNGnRIMGW63zVcQL_8Ua93eTbrc8,3885
62
+ stubber/get_lobo.py,sha256=jyysWbeEwNuZZtkTudJP1QbyVvh-TwFom5cE7iCi9lE,1776
63
+ stubber/merge_config.py,sha256=NCHgpt67uR_yFaiXCtkvZIKqzold2aG7kYUzgvCg2xk,2855
64
+ stubber/minify.py,sha256=z-acX9CNvHbir-xquD-JpAmGfZnaFHJayPJu64-Rj2M,15096
65
+ stubber/modcat.py,sha256=tKB-8l56SuTWoIn8zEtnu5VuPf25ZIggB9x_qNYeiDI,3752
66
+ stubber/publish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
+ stubber/publish/bump.py,sha256=qSb1DpaIxgyoH3YcPU1XKyDKgqkomxSm0WWf1sAVh0Y,3262
68
+ stubber/publish/candidates.py,sha256=w_OzjVU9euaWGf1lC3p5FuwpP1YDXjjGoczFE41QAik,10820
69
+ stubber/publish/database.py,sha256=8wCr19i_6x00spvHlfzlz5nRcfhTgEPeNUnHHRZ967Q,1851
70
+ stubber/publish/defaults.py,sha256=naAyHN_k8OFQfqRnXlPU3HNA0IZll-NA5GuJEvDEG_k,1532
71
+ stubber/publish/enums.py,sha256=Z_x798ArtxyjQIRRY43GDGNB9BD4uPfpeGsXYdj31w0,780
72
+ stubber/publish/helpers.py,sha256=909umfKUHBMBoVnAanop1vKx8loCrWntlfiiG6z89lY,716
73
+ stubber/publish/merge_docstubs.py,sha256=jlMQ3q6DqnLEJ_BvfgtXpTSlD6_XDpn697HG4fi3lRk,6513
74
+ stubber/publish/package.py,sha256=XbPRw5aTgS53ptPmSpGlEsiIGHKWloG2-cgN2PxSaw8,5374
75
+ stubber/publish/pathnames.py,sha256=vORgygaOJJAjlI3cLhNTHfowdewSDsv7zck5evPe1cY,1803
76
+ stubber/publish/publish.py,sha256=fG95ANcdZibwWW_ZoqjhPpolswb17IOi-gTIpNPwjKc,3989
77
+ stubber/publish/pypi.py,sha256=LdvwLfjkkSFBTI4MHyl7Ko_ZWn1SflWxJ9uo2mtPKtc,1272
78
+ stubber/publish/stubpackage.py,sha256=-0hJhOTBfSRc3k4-pUd2LHa_t7J5HwvWHMldubeUzo4,47596
79
+ stubber/rst/__init__.py,sha256=5VcbDCotIICa2xnJDs_gw2sFXpjjGOZZbwCrNKXy1OE,293
80
+ stubber/rst/classsort.py,sha256=-Uji6LzBbX6voKmiXSuexJXyoQ3fmSDQ7Fuz4j1Kk8E,2655
81
+ stubber/rst/lookup.py,sha256=8nnU8MZPMEUKhuZ_tbtV_eh6C7K4A1RN1wemsCodTtw,26003
82
+ stubber/rst/output_dict.py,sha256=cpBXRtUD-uh0EgjWIBiRrMLBmIAEXjoJFSOAg-qJQiU,14755
83
+ stubber/rst/reader.py,sha256=sNZwEpSG8esBrPvD-gVjtku828XfLNst-earA3XBN1c,35426
84
+ stubber/rst/report_return.py,sha256=p0JfJs_WTWTtRZREcQeqUgDW-_TP2VuuX7k7-c49y5E,3024
85
+ stubber/rst/rst_utils.py,sha256=-F6J09-WQBzI5419ItzOlm4gUKxF4BMru2OyXx-M6ko,18314
86
+ stubber/stubber.py,sha256=GxLfHIzDyfFvgiTqMj9DB3tq7I3EnEUNbdoCtYr8gHM,1640
87
+ stubber/stubs_from_docs.py,sha256=uxOCIWKxCAIfYpFBdIB0ZCghbJEJVgRGdW78deHAU54,3563
88
+ stubber/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
89
+ stubber/tools/manifestfile.py,sha256=YzPMc7PNciLOBpoc4xgUZ38t88C1C8b4fjG0qfWd6K8,25749
90
+ stubber/tools/readme.md,sha256=uI0higcFUtjSLKobn7NK2LoqZ0BqcbftXSDgNjbsnzo,284
91
+ stubber/typing_collector.py,sha256=YyNgxqgbWC_KQVO7ixUf_3XTFz6OhriboHK1RVX8_eY,9180
92
+ stubber/update_fallback.py,sha256=mFxFvcLWl-5IX9BdRuo_WMa538Wtomo2sE14jKbW7-0,4913
93
+ stubber/update_module_list.py,sha256=OEAOnFxB8Ywakw0pxiiTrIplWmoJ9r3Cdn07EpVDmNY,4038
94
+ stubber/utils/__init__.py,sha256=73LiuTInDABhDhnDixU8ojlkVUjR5e3Uv8QNaeBMG0E,234
95
+ stubber/utils/config.py,sha256=wPmSSut9PWjLFzr_8jj7IwkrVsL4mq17X8DGOeRqXGw,5544
96
+ stubber/utils/makeversionhdr.py,sha256=dO8sWLAY_ifT1IJJ1-JJ2z_thvfqJnK3c1_bHF_UI28,1953
97
+ stubber/utils/manifest.py,sha256=KEeFwVCke2XlUv8-g9S10DaoHzISZDxZn0G4LrHn2vA,3239
98
+ stubber/utils/post.py,sha256=lHGPO_q-ZQgx03P0vEwZDVr0pCNt5-gY-DXW62DBeQM,2926
99
+ stubber/utils/repos.py,sha256=piUZwtHBXXJ-XPhvw_qXYqO-fy1ktZsb9-7CAwNo2YQ,5896
100
+ stubber/utils/stubmaker.py,sha256=pO8Bo9JuHo6eeJGJz4hO2PzVJojNYFdJPdVtlgjKkBI,5236
101
+ stubber/utils/typed_config_toml.py,sha256=ZR7eo-whyL4nhFXj6xs7E121sLuE-ivlUDevII4K2xg,2653
102
+ stubber/variants.py,sha256=NnwUP-aiGUPAn15BeRRFcBWQUOzAFFnN2oL4u9zio-s,3792
103
+ micropython_stubber-1.24.4.post1.dist-info/entry_points.txt,sha256=JoR8NWh8t6pbDyn0WOMCIfRfDQAOGxqbOgJWuxv3Cxw,116
104
+ micropython_stubber-1.24.4.post1.dist-info/LICENSE,sha256=Fx9qrL45ayRXgH6QzttboqZEjKXms0w1t_b_nkOqYCU,1572
105
+ micropython_stubber-1.24.4.post1.dist-info/METADATA,sha256=ESYg7WYXZXrsfxIjvQNTE_N1CJ-1ulTt_5F6MCmP-gI,19985
106
+ micropython_stubber-1.24.4.post1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
107
+ micropython_stubber-1.24.4.post1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
stubber/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """get the version"""
2
2
 
3
- __version__ = "1.24.2"
3
+ __version__ = "1.24.3"
@@ -18,7 +18,7 @@ Create stubs for (all) modules on a MicroPython board.
18
18
  - cross compilation, using mpy-cross, to avoid the compilation step on the micropython device
19
19
 
20
20
 
21
- This variant was generated from createstubs.py by micropython-stubber v1.24.2
21
+ This variant was generated from createstubs.py by micropython-stubber v1.24.3
22
22
  """
23
23
 
24
24
  # Copyright (c) 2019-2024 Jos Verlinde
@@ -9,7 +9,7 @@
9
9
  - cross compilation, using mpy-cross,
10
10
  to avoid the compilation step on the micropython device
11
11
 
12
- This variant was generated from createstubs.py by micropython-stubber v1.24.2
12
+ This variant was generated from createstubs.py by micropython-stubber v1.24.3
13
13
  """
14
14
 
15
15
  # Copyright (c) 2019-2024 Jos Verlinde
@@ -393,7 +393,7 @@ def stub_connected_mcus(
393
393
  family=board.firmware["family"],
394
394
  boards=board.firmware["board"],
395
395
  ports=board.firmware["port"],
396
- mpy_path=CONFIG.mpy_path,
396
+ # mpy_path=CONFIG.mpy_path,
397
397
  )
398
398
  if not merged:
399
399
  log.error(f"Failed to merge stubs for {board.serialport}")
stubber/codemod/board.py CHANGED
@@ -16,7 +16,7 @@ from packaging.version import Version
16
16
  from stubber import __version__
17
17
  from stubber.codemod._partials import Partial
18
18
  from stubber.codemod.modify_list import ListChangeSet, ModifyListElements
19
- from stubber.cst_transformer import update_module_docstr
19
+ from stubber.typing_collector import update_module_docstr
20
20
 
21
21
  # matches on `stubber = Stubber()`
22
22
  _STUBBER_MATCHER = m.Assign(
stubber/codemod/enrich.py CHANGED
@@ -11,14 +11,13 @@ from pathlib import Path
11
11
  from typing import Any, Dict, List, Optional, Tuple # noqa: UP035
12
12
 
13
13
  from libcst import ParserSyntaxError
14
- from libcst.codemod import (CodemodContext, diff_code,
15
- exec_transform_with_prettyprint)
14
+ from libcst.codemod import CodemodContext, diff_code, exec_transform_with_prettyprint
16
15
  from libcst.tool import _default_config # type: ignore
17
16
 
18
17
  import stubber.codemod.merge_docstub as merge_docstub
19
18
  from mpflash.logger import log
20
19
  from stubber.merge_config import CP_REFERENCE_TO_DOCSTUB, copy_type_modules
21
- from stubber.rst.lookup import U_MODULES
20
+ from stubber.modcat import U_MODULES
22
21
  from stubber.utils.post import run_black
23
22
 
24
23
 
@@ -163,7 +162,8 @@ def enrich_file(
163
162
  diff: bool = False,
164
163
  write_back: bool = False,
165
164
  # package_name="", # not used
166
- params_only: bool = False,
165
+ copy_params: bool = False,
166
+ copy_docstr: bool = False,
167
167
  ) -> Generator[str, None, None]:
168
168
  """
169
169
  Enrich a MCU stubs using the doc-stubs in another folder.
@@ -198,7 +198,7 @@ def enrich_file(
198
198
  old_code = current_code = target_path.read_text(encoding="utf-8")
199
199
  # read source file
200
200
  codemod_instance = merge_docstub.MergeCommand(
201
- context, docstub_file=source_path, params_only=params_only
201
+ context, docstub_file=source_path, copy_params=copy_params, copy_docstr=copy_docstr,
202
202
  )
203
203
  if new_code := exec_transform_with_prettyprint(
204
204
  codemod_instance,
@@ -218,7 +218,7 @@ def enrich_file(
218
218
  log.trace(f"Write back enriched file {target_path}")
219
219
  target_path.write_text(current_code, encoding="utf-8")
220
220
  if diff:
221
- yield diff_code(old_code, current_code, 5, filename=target_path.name)
221
+ yield diff_code(old_code, current_code, 2, filename=target_path.name)
222
222
 
223
223
 
224
224
  def merge_candidates(
@@ -280,8 +280,9 @@ def enrich_folder(
280
280
  show_diff: bool = False,
281
281
  write_back: bool = False,
282
282
  require_docstub: bool = False,
283
- params_only: bool = False,
283
+ copy_params: bool = False,
284
284
  ext: Optional[str] = None,
285
+ copy_docstr: bool = False,
285
286
  # package_name: str = "",
286
287
  ) -> int:
287
288
  """\
@@ -313,7 +314,8 @@ def enrich_folder(
313
314
  diff=True,
314
315
  write_back=write_back,
315
316
  # package_name=mm.target_pkg,
316
- params_only=params_only,
317
+ copy_params=copy_params,
318
+ copy_docstr=copy_docstr,
317
319
  )
318
320
  ):
319
321
  count += len(diff)
@@ -335,8 +337,8 @@ def enrich_folder(
335
337
  run_black(target_folder)
336
338
  # DO NOT run Autoflake as this removes some relevant (but unused) imports too early
337
339
 
338
- if params_only:
339
- copy_type_modules(source_folder, target_folder, CP_REFERENCE_TO_DOCSTUB)
340
+ # if copy_params:
341
+ # copy_type_modules(source_folder, target_folder, CP_REFERENCE_TO_DOCSTUB)
340
342
  return count
341
343
 
342
344