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

Code style cleanup#16044

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
anntzer merged 1 commit intomatplotlib:masterfromtimhoffm:codestyle-cleanup
Dec 31, 2019
Merged

Conversation

timhoffm
Copy link
Member

PR Summary

  • Remove redundant parentheses
  • Property setters should not return anything
  • useif myvar: instead ofif myvar != []:


@property
def v_interval(self):
return self.get_view_interval()

@d_interval.setter
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This was actually a bug.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would love to have a test for this...

Copy link
Contributor

Choose a reason for hiding this comment

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

We should actually just deprecate them, as they are just mplot3d-specific synonyms for {get,set}_{view,data}_interval...

Copy link
MemberAuthor

@timhoffmtimhoffmDec 31, 2019
edited
Loading

Choose a reason for hiding this comment

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

Moved to a separate PR#16053.

@timhoffmtimhoffm mentioned this pull requestDec 31, 2019
@timhoffmtimhoffm added this to thev3.3.0 milestoneDec 31, 2019
@anntzeranntzer merged commitcab5dcc intomatplotlib:masterDec 31, 2019
@timhoffmtimhoffm deleted the codestyle-cleanup branchJanuary 1, 2020 09:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dopplershiftdopplershiftdopplershift left review comments

@anntzeranntzeranntzer approved these changes

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

4 participants
@timhoffm@dopplershift@anntzer@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp