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
Using individual node "works" because getitem returns Any (shouldn't it return NodeType?):
node=nodes[i_node] # node type: Anynode.left= ... # ok
But when I pass a node to a subroutine, shouldn't its type be "NodeType"?
deffoo(node: NodeType) ->None:
node.left= ... # pylance type error # "Cannot assign to attribute "value" for class "NodeType" Attribute "value" is unknown"
Is this a pylance (pyright) specific problem ... or am I using NodeType wrongly for individual records?
The text was updated successfully, but these errors were encountered:
I have a recarray, typed as:
Using individual node "works" because getitem returns Any (shouldn't it return NodeType?):
But when I pass a node to a subroutine, shouldn't its type be "NodeType"?
Is this a pylance (pyright) specific problem ... or am I using NodeType wrongly for individual records?
The text was updated successfully, but these errors were encountered: