I am working on API and I really cannot rename variable name to process things fast but I cannot make run the code(Python 3.11).
The problem:
def __init__(self, from: str = None)
self.from = from
when I try to run this piece of beautifully written gem, I got an error.
def __init__(self, from: str = None
^^^^
SyntaxError: invalid syntax
Even the pylance had problem with the syntax but I manage to fix it with # type: ignore
at the beginning of the script.
Any advice?
Editor: VSCode
I have tried Google but didn't help much. :)