Fix typing for FloatPrompt (#3151)

Co-authored-by: Darren Burns <darrenb900@gmail.com>
This commit is contained in:
xymy 2023-11-08 02:02:06 +08:00 committed by GitHub
parent 0177b03700
commit 50d2a457c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Ensure font is correctly inherited in exported HTML https://github.com/Textualize/rich/issues/3104
- Fixed typing for `FloatPrompt`.
## [13.6.0] - 2023-09-30

View File

@ -307,7 +307,7 @@ class IntPrompt(PromptBase[int]):
validate_error_message = "[prompt.invalid]Please enter a valid integer number"
class FloatPrompt(PromptBase[int]):
class FloatPrompt(PromptBase[float]):
"""A prompt that returns a float.
Example: