Skip to content

Conversation

@AlexKempen
Copy link
Contributor

The start_angle argument of Arc is incorrectly typed as int. Since no explicit type is assigned, and the default value is the literal 0, the implicit type is int, not float. This PR fixes this issue by adding the explicit float type.

This PR also corrects a misspelling of the word animation in the documentation of Mobject's add_animation_override.

Links to added or changed documentation pages

Arc
add_animation_override

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added functions and classes are tested

@AlexKempen AlexKempen changed the title Arc start angle type fix Bugfix: Arc start angle type fix Apr 6, 2023
@AlexKempen AlexKempen changed the title Bugfix: Arc start angle type fix Bugfix: Fix arc start angle type Apr 6, 2023
@behackl behackl added enhancement Additions and improvements in general typehints For adding/discussing typehints labels Apr 25, 2023
Copy link
Member

@behackl behackl left a comment

Choose a reason for hiding this comment

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

Seems fine to me, thanks!

@behackl behackl merged commit 0d3464c into ManimCommunity:main Jul 4, 2023
@behackl behackl added this to the v0.18.0 milestone Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Additions and improvements in general typehints For adding/discussing typehints

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants