str | None syntax is only supported in 3.10 or later. Use from typing import Optional name: Optional[str] = None For cases where the right hand side isn't None or there are more than two types, you can use Union from typing import Union foo: Union[str, int, float] = "bar"
- 39 type unsupported TypeError duplicate39 type unsupported typeerror 39 unsupported typeerror str unsupported_media_type unsupported_media_type unsupported接口 问题 unsupported operand types gpt 39 duplicate primary mysql 39 datetime descriptor typeerror heatmap 39 typeerror imagedata 索引39 priority_unique duplicate 39 typeerror storeinfo undefined