I have an invalid syntax according to flake8, pylint, but the code works. What's wrong with that code?
I did lots of Google search but couldn't find anything.
#!/usr/bin/env python
with open("test.py", "a") as output:
# E: 4, 0: invalid syntax (<string>, line 4) (syntax-error)
print("hello world", file=output)
(1, a=2)is an error because tuples cannot have key value pairs. Only argument lists can.