Answer the question
In order to leave comments, you need to log in
What is the "error" keyword?
Hello. I can not find information either in the official docks or on third-party sites. I saw the line "error: t.Optional[BaseException] = None" in the Flask error (debugger) message.
I tried to use error: in the interpreter - everything works, but it's not clear what it does.
Answer the question
In order to leave comments, you need to log in
This simply tells you that there is an error.
I can't say for sure, but it seems to me that the interpreter considers type commands to be type assignments as well . Which, in theory, should look like or . But as far as I know, the interpreter itself does not understand this syntax, so it accepts it without error. But the IDE will let you know that you are using it somehow wrong. name: 15
sum: dir
name: str
rating: int
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question