Skip to content

bpo-33983: Make lib2to3.pytree.Base.children a list#7977

Closed
amyreese wants to merge 1 commit intopython:mainfrom
amyreese:lib2to3-types
Closed

bpo-33983: Make lib2to3.pytree.Base.children a list#7977
amyreese wants to merge 1 commit intopython:mainfrom
amyreese:lib2to3-types

Conversation

@amyreese
Copy link
Copy Markdown
Contributor

@amyreese amyreese commented Jun 27, 2018

The type difference between Base/Leaf (a tuple) and Node (a list)
makes it difficult to type check functions that take both, because
lists can be used in ways that tuples can't.

https://bugs.python.org/issue33983

The type difference between Base/Leaf (a tuple) and Node (a list)
makes it difficult to type check functions that take both, because
lists can be used in ways that tuples can't.
@JelleZijlstra
Copy link
Copy Markdown
Member

Unfortunately this patch has lingered for years. In 3.11, lib2to3 was marked as deprecated, so I think it no longer makes sense to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants