Visitar URL original
bpo-44490: Add __parameters__ and __getitem__ to types.Union by uriyyo · Pull Request #26980 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add parameters to union_traverse
  • Loading branch information
uriyyo committed Jul 3, 2021
commit 8cfa980308abec90a29f54cc17218335d079f882
1 change: 1 addition & 0 deletions Objects/unionobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ union_traverse(PyObject *self, visitproc visit, void *arg)
{
unionobject *alias = (unionobject *)self;
Py_VISIT(alias->args);
Py_VISIT(alias->parameters);
return 0;
}

Expand Down