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

Docs: adding missingmutable-override to section title#16886

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
JelleZijlstra merged 2 commits intopython:masterfromjamesbraza:mutable-override-docs
Feb 7, 2024
Merged

Docs: adding missingmutable-override to section title#16886

JelleZijlstra merged 2 commits intopython:masterfromjamesbraza:mutable-override-docs
Feb 7, 2024

Conversation

@jamesbraza
Copy link
Contributor

Closes#16880
Supercedes#16881

@jamesbrazajamesbraza changed the titleDocs: adding missing mutable-override to section titleDocs: adding missingmutable-override to section titleFeb 6, 2024
@jamesbraza
Copy link
ContributorAuthor

Cc@ilevkivskyi since he authored this rule in#16399


This will enable the check for unsafe overrides of mutable attributes. For
historical reasons, and because this is a relatively common pattern in Python,
Introduced in Mypy version 1.8,
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to mention the version, unless perhaps if you want to go through and do it for all the other codes. The docs already prominently say the version at the top, and users should know that if they use an older version, they should consult that version's documentation.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Okay sounds good! Yeah I had added it because I was initially using 1.7.1, and it wasn't there. However, I agree with your logic too, so will remove

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Pushed that change

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

@JelleZijlstraJelleZijlstra merged commit5c5f3ad intopython:masterFeb 7, 2024
@jamesbrazajamesbraza deleted the mutable-override-docs branchFebruary 7, 2024 00:55
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JelleZijlstraJelleZijlstraAwaiting requested review from JelleZijlstra

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mutable-override not in docs header correctly

2 participants

@jamesbraza@JelleZijlstra

[8]ページ先頭

©2009-2025 Movatter.jp