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

check for and fix mutable keyword defaults#794

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

Conversation

murrayrm
Copy link
Member

This PR adds a check for keyword arguments in all functions that are initialized to mutables and fixes a few errors that were found. Setting keyword defaults to mutables is still allowed by listing the function in a table. This should help introduction of errors if a mutable is used as a default keyword in future updates.

@murrayrmmurrayrm changed the titlecheck for and fix mutable keyword argscheck for and fix mutable keyword defaultsNov 19, 2022
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 94.8% when pulling4968cb3 on murrayrm:mutable_default_args-13Nov2022 into2dc409b on python-control:main.

@roryyorke
Copy link
Contributor

Looks good to me. FWIWpylint has a warning for mutable args.

@bnavigatorbnavigator merged commit2a799e9 intopython-control:mainNov 20, 2022
@murrayrmmurrayrm added this to the0.9.3 milestoneDec 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.3
Development

Successfully merging this pull request may close these issues.

4 participants
@murrayrm@coveralls@roryyorke@bnavigator

[8]ページ先頭

©2009-2025 Movatter.jp