Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix daemon crash on malformed NamedTuple#14119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ilevkivskyi merged 3 commits intopython:masterfromilevkivskyi:fix-daemon-nt-crash
Nov 18, 2022

Conversation

@ilevkivskyi
Copy link
Member

Fixes#14098

Having invalid statements in a NamedTuple is almost like a syntax error, we can remove them after giving an error (without further analysis). This PR does almost exactly the same as#13963 did for TypedDicts.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@JukkaLJukkaL left a comment

Choose a reason for hiding this comment

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

Looks good, just left one idea about an additional thing to test.

class C: ...
x: int
y: int
# change
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe also test a change in another module to test AST stripping and reprocessing of an invalid named tuple?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yeah, it actually doesn't work. This btw also affects the recent TypedDict PR too, I am going to fix both.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According tomypy_primer, this change has no effect on the checked open source code. 🤖🎉

@ilevkivskyiilevkivskyi merged commit1d6a5b1 intopython:masterNov 18, 2022
@ilevkivskyiilevkivskyi deleted the fix-daemon-nt-crash branchNovember 18, 2022 10:48
ChristianWitzler added a commit to ChristianWitzler/mypy that referenced this pull requestNov 21, 2022
Fix daemon crash on malformed NamedTuple (python#14119)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja left review comments

@JukkaLJukkaLJukkaL approved these changes

@Michael0x2aMichael0x2aAwaiting requested review from Michael0x2a

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Mypy Deamon crash on second run

3 participants

@ilevkivskyi@JukkaL@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp