Commit 26b9021
Improve type hints of from_url method for async Redis client. (#3796)
* Add return type annotations to from_url methods
- Add return type annotation to Redis.from_url() in client.py
- Add parameter and return type annotations to utils.from_url()
- Improves type safety and IDE autocomplete support
- Resolves MyPy no-untyped-call errors for users
* Reorder import statements in utils.py
---------
Co-authored-by: cheizdo2-art <cheizdo2-art@users.noreply.github.com>
Co-authored-by: petyaslavova <petya.slavova@redis.com>1 parent ce59a2c commit 26b9021
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments