Skip to content

Commit ee46ccd

Browse files
authored
Merge pull request #3359 from KaiSforza/addspinnername
Adds a `name` attribute to `Spinner`
2 parents 1e48fb6 + 21b750c commit ee46ccd

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6868

6969
- Updated the widths of some characters https://github.com/Textualize/rich/pull/3289
7070

71+
### Added
72+
73+
- Included a `name` attribute to the `Spinner` class https://github.com/Textualize/rich/pull/3359
74+
7175
## [13.7.0] - 2023-11-15
7276

7377
### Added

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The following people have contributed to the development of Rich:
2020
- [Aryaz Eghbali](https://github.com/AryazE)
2121
- [Oleksis Fraga](https://github.com/oleksis)
2222
- [Andy Gimblett](https://github.com/gimbo)
23+
- [Kai Giokas](https://github.com/kaisforza)
2324
- [Tom Gooding](https://github.com/TomJGooding)
2425
- [Michał Górny](https://github.com/mgorny)
2526
- [Nok Lam Chan](https://github.com/noklam)

rich/spinner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def __init__(
3838
self.text: "Union[RenderableType, Text]" = (
3939
Text.from_markup(text) if isinstance(text, str) else text
4040
)
41+
self.name = name
4142
self.frames = cast(List[str], spinner["frames"])[:]
4243
self.interval = cast(float, spinner["interval"])
4344
self.start_time: Optional[float] = None

0 commit comments

Comments
 (0)