Skip to content

Commit 50d2a45

Browse files
xymydarrenburns
andauthored
Fix typing for FloatPrompt (#3151)
Co-authored-by: Darren Burns <[email protected]>
1 parent 0177b03 commit 50d2a45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Fixed
1515

1616
- Ensure font is correctly inherited in exported HTML https://github.com/Textualize/rich/issues/3104
17+
- Fixed typing for `FloatPrompt`.
1718

1819
## [13.6.0] - 2023-09-30
1920

Diff for: rich/prompt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class IntPrompt(PromptBase[int]):
307307
validate_error_message = "[prompt.invalid]Please enter a valid integer number"
308308

309309

310-
class FloatPrompt(PromptBase[int]):
310+
class FloatPrompt(PromptBase[float]):
311311
"""A prompt that returns a float.
312312
313313
Example:

0 commit comments

Comments
 (0)