This example demonstrates a common Python error: TypeError: unsupported operand type(s) for +: 'int' and 'str'. This occurs when attempting to use the + operator with an integer and a string, which ...
Now I understand Optional[int] would accept None or int, all examples I found in doc just use Optional it in function argument, not using that var inside the function body. I understand that to be ...