You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warnings on import (these are TypeErrors at runtime):
/workspaces/yardl/joe/issue-#112/python/odd/types.py:58: SyntaxWarning: 'list' object is not callable; perhaps you missed a comma?self.a=aifaisnotNoneelseTvOrT.Tv([]())
/workspaces/yardl/joe/issue-#112/python/odd/types.py:59: SyntaxWarning: 'dict' object is not callable; perhaps you missed a comma?self.b=bifbisnotNoneelseTmOrT.Tm({}())
This issue occurs when the first type in the union resolves to a Python list or dict.
The text was updated successfully, but these errors were encountered:
naegelejd
changed the title
Python unions
Python syntax/type errors when default union type is list or dict
Nov 28, 2023
Given the following model:
yardl v0.4.0 generates invalid constructor code for both inner unions:
Warnings on import (these are TypeErrors at runtime):
This issue occurs when the first type in the union resolves to a Python
list
ordict
.The text was updated successfully, but these errors were encountered: