We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa9182 commit ce6de42Copy full SHA for ce6de42
circuitpython_build_tools/munge.py
@@ -99,7 +99,7 @@ def process_statement(node):
99
# return the statements in the else branch of 'if TYPE_CHECKING: ...'
100
elif ast.unparse(node.test) == 'TYPE_CHECKING':
101
replace(node.lineno, 'if 0:')
102
- elif isinstance(node, ast.Assign) and node.targets[0].id == '__version__':
+ elif isinstance(node, ast.Assign) and isinstance(node.targets[0], ast.Name) and node.targets[0].id == '__version__':
103
replace(node.lineno, f"__version__ = \"{version_str}\"")
104
105
content = pathlib.Path(path).read_text(encoding="utf-8")
0 commit comments