Merge pull request #2613 from xadrianzetx/fix-spinner-style-type

Fix type of `spinner_style` argument in `Console.status`
This commit is contained in:
Will McGugan 2023-03-04 15:37:54 +00:00 committed by GitHub
commit c5f08908c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -81,6 +81,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Handling of broken `fileno` made more robust. Fixes https://github.com/Textualize/rich/issues/2645
- Fixed missing `fileno` on FileProxy
### Fixed
- Fix type of `spinner_style` argument in `Console.status` https://github.com/Textualize/rich/pull/2613.
### Changed
- Bumped minimum Python version to 3.7 https://github.com/Textualize/rich/pull/2567

View File

@ -64,6 +64,8 @@ The following people have contributed to the development of Rich:
- [Tomer Shalev](https://github.com/tomers)
- [Serkan UYSAL](https://github.com/uysalserkan)
- [Zhe Huang](https://github.com/onlyacat)
- [Adrian Zuber](https://github.com/xadrianzetx)
- [Ke Sun](https://github.com/ksun212)
- [Qiming Xu](https://github.com/xqm32)
- [James Addison](https://github.com/jayaddison)

View File

@ -1150,7 +1150,7 @@ class Console:
status: RenderableType,
*,
spinner: str = "dots",
spinner_style: str = "status.spinner",
spinner_style: StyleType = "status.spinner",
speed: float = 1.0,
refresh_per_second: float = 12.5,
) -> "Status":