mypy: Final small migrations to python3.5 annotations in many files.

This commit is contained in:
neiljp (Neil Pilgrim)
2018-03-12 01:47:49 +00:00
committed by Tim Abbott
parent 34db2e59dd
commit 9e1dbde82d
11 changed files with 32 additions and 42 deletions

View File

@@ -4534,8 +4534,9 @@ def do_update_user_group_description(user_group: UserGroup, description: Text) -
user_group.save(update_fields=['description'])
do_send_user_group_update_event(user_group, dict(description=description))
def do_update_outgoing_webhook_service(bot_profile, service_interface, service_payload_url):
# type: (UserProfile, int, Text) -> None
def do_update_outgoing_webhook_service(bot_profile: UserProfile,
service_interface: int,
service_payload_url: Text) -> None:
# TODO: First service is chosen because currently one bot can only have one service.
# Update this once multiple services are supported.
service = get_bot_services(bot_profile.id)[0]