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

Adds a name attribute to Spinner #3359

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

Conversation

KaiSforza
Copy link

@KaiSforza KaiSforza commented May 14, 2024

Makes it nicer for validation and use of the Spinner object in later functions/classes.

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code. (not really much need, let me know if I should add an assert or something though.)
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Simply adds a name attribute to Spinner for use in later functions/classes. The current one has no mention of name outside of __init__, but a lot of the functions and classes take a spinner name, not a spinner object. I added this because of some of the stuff I did in pypa/hatch#1490. Would have been nice to make it not a throwaway.

Makes it nicer for validation and use of the `Spinner` object
in later functions/classes.
@KaiSforza KaiSforza changed the title Adds a Adds a name attribute to Spinner May 14, 2024
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.

None yet

1 participant