Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animation #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

animation #66

wants to merge 1 commit into from

Conversation

JaskRendix
Copy link
Contributor

PR:

  1. Added a check for empty frames sequence: In the __init__ method, a ValueError is raised if the frames sequence is empty. This ensures that the animation token is always initialized with a valid sequence of frames.
  2. Added a return type hint for the advance method: The advance method now includes a return type hint, indicating that it returns an AnimationFrame object.
  3. Added a docstring for the __lt__ method: The __lt__ method now includes a docstring that explains its purpose and behavior.
  4. Added a __repr__ method: The __repr__ method provides a string representation of the AnimationToken object, which can be useful for debugging and logging purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant