Skip to content

Support NamedTuple class syntax in all stubs#7646

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
srittau:namedtuple-class-in-stubs
Oct 7, 2019
Merged

Support NamedTuple class syntax in all stubs#7646
ilevkivskyi merged 1 commit into
python:masterfrom
srittau:namedtuple-class-in-stubs

Conversation

@srittau
Copy link
Copy Markdown
Contributor

@srittau srittau commented Oct 7, 2019

Previously, it was not supported in stubs when checking in Python 2.7 or
3.5 mode.

Closes: #3464

Previously, it was not supported in stubs when checking in Python 2.7 or
3.5 mode.

Closes: python#3464
Copy link
Copy Markdown
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it could be quite useful :)

@ilevkivskyi ilevkivskyi merged commit e4d99c6 into python:master Oct 7, 2019
@srittau srittau deleted the namedtuple-class-in-stubs branch October 7, 2019 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow class-based NamedTuple syntax in semantic analyzer for stubs in pre-3.6 mode

4 participants