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
When self-referencing inside a class, it is possible in Python to do
fromtypingimportSelfclassNode:
neighbor: Self
Currently, referencing the Node-class directly is different in Python (neighbor: 'Node') and Codon (neighbor: Node) so I thought it would be nice to use Self, so the script could run on both Python and Codon.
Could the typing-mock be extended with Self?
The text was updated successfully, but these errors were encountered:
When self-referencing inside a class, it is possible in Python to do
Currently, referencing the
Node
-class directly is different in Python (neighbor: 'Node'
) and Codon (neighbor: Node
) so I thought it would be nice to useSelf
, so the script could run on both Python and Codon.Could the
typing
-mock be extended withSelf
?The text was updated successfully, but these errors were encountered: