The following code produces syntaxError warning : invalid syntax
with open("file.txt", "w") as fd:
The code still can be run. It's just a false flag warning message.
I just try that on my forked repo, and it didn't show the warning.