You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/32_rp2_asm.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ if TYPE_CHECKING:
20
20
21
21
This block of code does the following:
22
22
23
-
-Tries to import TYPE_CHECKING from typing_extensions. when the code runs , this will fail , and sets TYPE_CHECKING to False.
23
+
-Set TYPE_CHECKING to False. [A bit of a shortcut - discussion in typing community](https://discuss.python.org/t/specify-type-checking-false-without-typing-import/76766)
24
24
- If TYPE_CHECKING is True, that means that a type-checker is assessing the code , and it imports all the necessary types from rp2.asm_pio.
25
25
This ensures that type checkers can understand the PIO instructions, even though they do not follow standard Python syntax.
26
26
This is useful for catching errors in your PIO code before running it on your RP2 board.
0 commit comments