-
- Notifications
You must be signed in to change notification settings - Fork 895
Add notify to comment #1387
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
Add notify to comment #1387
Conversation
c26465d to 22a1e9e Compare | @adehad how do I ignore this since i don't want to change the api i don't think it's smart to listen to mypy here. i will add a |
| self, | ||
| fields: Optional[Dict[str, Any]] = None, | ||
| async_: Optional[bool] = None, | ||
| jira: "JIRA" = None, |
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.
more for myself, but why the quotes around JIRA?
I didn't see such a variant on https://docs.python.org/3/library/typing.html
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.
This is because we only import the JIRA class when type checking, and current Python versions actually try to evaluate the type hint.
Some more reading here: https://mypy.readthedocs.io/en/stable/runtime_troubles.html#annotation-issues-at-runtime
d75d2e6 to 4872c08 Compare
adehad left a comment
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.
Looks good, one main suggestion about the type hinting
| self, | ||
| fields: Optional[Dict[str, Any]] = None, | ||
| async_: Optional[bool] = None, | ||
| jira: "JIRA" = None, |
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.
This is because we only import the JIRA class when type checking, and current Python versions actually try to evaluate the type hint.
Some more reading here: https://mypy.readthedocs.io/en/stable/runtime_troubles.html#annotation-issues-at-runtime
a655163 to 6ecc3c2 Compare 6ecc3c2 to eac32b7 Compare | @adehad would be nice if this is released "soon" (maybe together with the other approved PR) my team would really like to use this feature :-) |
| @studioj yep I think a new release is due soon too! I'll also make progress on my PR, would be great if you can review it once I've made the changes |
my own implementation of #1008
I didn't want to add the functionality to
jira.add_commentsince I'm not sure if it has the same way of adding the notification as add_user =>data["notification"]='false'ORdata["notifyUsers"] = "false"