Closed phormio closed 1 month ago
garbage in garbage out. your code has a NameError
It has a SyntaxError
. When I fix it, there is no NameError
.
Here is the corrected program:
from __future__ import annotations
from typing import List
def f(x: List[str]) -> None:
print(100)
The pyupgrade
command in my previous comment now behaves according to the documentation.
I wrote the program to check whether pyupgrade
requires all of the list items in the "Availability" section to be true or only one of them. The documentation is unclear on this point.
why would you expect a malformed input to produce a meaningful result
I don't understand the mental gymnastics
pyupgrade
should changeList[str]
tolist[str]
. In fact, it leaves the file unchanged.