Skip to content
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

annotated zerver.views.webhooks.jira #942

Conversation

medullaskyline
Copy link
Contributor

No description provided.

@smarx
Copy link

smarx commented Jun 5, 2016

Automated message from Dropbox CLA bot

@medullaskyline, it looks like you've already signed the Dropbox CLA. Thanks!

@@ -86,7 +90,9 @@ def convert_jira_markup(content, realm):
def api_jira_webhook(request, user_profile, client,
payload=REQ(argument_type='body'),
stream=REQ(default='jira')):
# type: (HttpRequest, UserProfile, str, Dict[Any, Any], str) -> HttpResponse
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client here is a Client object from zerver.models

Copy link
Sponsor Member

@timabbott timabbott Jun 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, payload is a Dict[str, Any](update this is get_in as well) and stream should be a text_type (since it's unicode)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made those fixes, thanks!

@medullaskyline medullaskyline force-pushed the mypy-annotation-zerver.views.webhooks.jira branch from 11c104d to 90a8f6e Compare June 5, 2016 21:23
@timabbott
Copy link
Sponsor Member

Merged, thanks @medullaskyline!

@timabbott timabbott closed this Jun 5, 2016
@medullaskyline medullaskyline deleted the mypy-annotation-zerver.views.webhooks.jira branch June 5, 2016 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants