-
-
Notifications
You must be signed in to change notification settings - Fork 873
Fix type hints for redis TTL params #922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✔️ Changelog found.Thank you for adding a description of the changes |
Codecov Report
@@ Coverage Diff @@
## dev-3.x #922 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 300 300
Lines 8183 8184 +1
=========================================
+ Hits 8183 8184 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
CHANGES/922.feature.rst
Outdated
@@ -0,0 +1 @@ | |||
Allowed to use int and datetime.timedelta in RedisStorage.state_ttl and RedisStorage.data_ttl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was allowed before, but with wrong type hinting
May be write something like
Fixed type hints for redis TTL params
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, uno momento)
int
and datetime.timedelta
in RedisStorage.state_ttl
and RedisStorage.data_ttl
Description
Use
float
anddatetime.timedelta
type hints inRedisStorage.state_ttl
andRedisStorage.data_ttl
.Let's reuse type hint
ExpiryT
from redis.Type of change
Checklist: