-
Notifications
You must be signed in to change notification settings - Fork 206
SG-39414 Add type annotations #422
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
| """ | ||
|
|
||
| import datetime | ||
| from typing import Any |
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.
I don't like using things from outside without having a package/module name.
| from typing import Any | |
| import typing |
Then use typing.Any.
If you are looking for a short version, we can always aggree on
import typing as tpThere 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.
This is a subjective personal preference, and we cannot enforce this. I agree on being explicit and importing the objects specifically.
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.
we cannot enforce this.
True but the first use usually defines the rule. So this is why I'd like the first iteration to mark our preferences.
|
yay! Thanks for taking this to completion! This was on my list after pyside6 stubs and rez. |
Closes #393
Thanks @chadrik