Showing posts with the label python-3.10

[FIXED] New union shorthand giving "unsupported operand type(s) for |: 'str' and 'type'"

Issue Before 3.10, I was using Union to create union parameter annotations: from typing import Un…

[FIXED] Pydantic create_model_from_typeddict does not play nice with mypy?

Issue I am using pydantic models generated from typeddicts in a project with mypy but I get a inval…

[FIXED] Python 3.10+: Optional[Type] or Type | None

Issue Now that Python 3.10 has been released, is there any preference when indicating that a parame…

[FIXED] Jupyter showing syntax error on match case, stating that i need pylance 3.10 or newer, which is already installed and working

Issue So, I've installed python 3.10.6 and everything works fine, even the match case where i g…