K
K
Kirill Gusarev2021-09-15 12:45:21
Python
Kirill Gusarev, 2021-09-15 12:45:21

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

1 answer(s)
L
low molecular macro, 2021-09-15
@kaka888

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: 15sum: dirname: strrating: int

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question