Skip to content

Commit

Permalink
Fix typing for FloatPrompt (#3151)
Browse files Browse the repository at this point in the history
Co-authored-by: Darren Burns <[email protected]>
  • Loading branch information
xymy and darrenburns authored Nov 7, 2023
1 parent 0177b03 commit 50d2a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion rich/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 50d2a45

Please sign in to comment.