-
Notifications
You must be signed in to change notification settings - Fork 59
Type Annotations #188
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
base: master
Are you sure you want to change the base?
Type Annotations #188
Conversation
|
Hello! I forgot to add typing-extensions as a dependency. I don't quite get what you suggesting about pytohn3.9. Did y 8000 ou mean dropping support for it, or using only native features of it? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #188 +/- ##
==========================================
- Coverage 98.24% 97.92% -0.32%
==========================================
Files 6 6
Lines 1933 2117 +184
==========================================
+ Hits 1899 2073 +174
- Misses 34 44 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CI fails, fix please
I was afraid of type hints won't work for python 3.9, but it looks like they are ok |
could you try it again, please? |
CI mypy fails @sakosha |
Yep. I'll try troubleshooting it on Th. |
# Conflicts: # .github/workflows/ci-cd.yml
Hello! type-check CI succeeded. |
Good job @sakosha. I reviewed client and some other files. Did not look at server and pathio files, but lets start from client |
hello! I believe TypedDict issue is the only one left. |
I need to review other files. Sorry for a delay, occupied at work hardly. Will try to review this on this week |
|
# Conflicts: # .gitignore # src/aioftp/client.py
Hi again! I believe I fixed all of the comments. |
Ok, will try to review everything tomorrow |
Also, I think we should ping others to see if they have any issues with the fork. |
Hello @pohmelie ! I forgot that dependencies can be optional on version. if sys.version_info >= (3, 11):
from typing import ...
else:
from typing_extensions import ... to each major file to make Sorry for the last minute changes. |
What do these changes do?
Adding type annotations to user facing API, internals and bug-fixes discovered during type checking.
Are there changes in behavior for the user?
typing-extensions
are now required dependency before py3.11.users extending Client should replace
self.stream
w/self._stream
to preserve old behavior.Related issue number
Fixes #164
Checklist
These changes are large. I hope it won't be hard to review