-
Notifications
You must be signed in to change notification settings - Fork 671
Specific type hints #2067
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
Specific type hints #2067
Conversation
Hi @vectro. thanks for the earlier discussions and for looking into this. We use https://github.com/python-gitlab/python-gitlab/blob/main/CONTRIBUTING.rst#running-unit-tests One of these is a commitlint check as we parse commits to create changelogs so this might need a bit of a squash and |
@nejch I ran tox and see some errors that I'm not sure what to do with. What do you think?
|
@vectro sorry for the super late response! I haven't checked this in depth myself but a few pointers:
I'm not sure your code gets checked by mypy as expected, as the generics part is defined outside the python-gitlab/gitlab/mixins.py Lines 67 to 79 in bd81ee0
Also keep in mind @JohnVillalovos did some work on typing recently so that might affect your rebase here. |
This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days. |
This PR was closed because it has been marked stale for 15 days with no activity. If this PR is still valid, please re-open. |
Update the type hints on Mixin objects to be more specific so that clients can know the specific RESTObject that would be returned.
Closes #2062