diff --git a/CHANGELOG.md b/CHANGELOG.md index 3562f6df6..52548cc42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/rich/prompt.py b/rich/prompt.py index 36e0bba62..972082b72 100644 --- a/rich/prompt.py +++ b/rich/prompt.py @@ -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: