zulip/zerver/webhooks
Anders Kaseorg fead14951c python: Convert assignment type annotations to Python 3.6 style.
This commit was split by tabbott; this piece covers the vast majority
of files in Zulip, but excludes scripts/, tools/, and puppet/ to help
ensure we at least show the right error messages for Xenial systems.

We can likely further refine the remaining pieces with some testing.

Generated by com2ann, with whitespace fixes and various manual fixes
for runtime issues:

-    invoiced_through: Optional[LicenseLedger] = models.ForeignKey(
+    invoiced_through: Optional["LicenseLedger"] = models.ForeignKey(

-_apns_client: Optional[APNsClient] = None
+_apns_client: Optional["APNsClient"] = None

-    notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
-    signup_notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+    notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+    signup_notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)

-    author: Optional[UserProfile] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
+    author: Optional["UserProfile"] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)

-    bot_owner: Optional[UserProfile] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
+    bot_owner: Optional["UserProfile"] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)

-    default_sending_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
-    default_events_register_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+    default_sending_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+    default_events_register_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)

-descriptors_by_handler_id: Dict[int, ClientDescriptor] = {}
+descriptors_by_handler_id: Dict[int, "ClientDescriptor"] = {}

-worker_classes: Dict[str, Type[QueueProcessingWorker]] = {}
-queues: Dict[str, Dict[str, Type[QueueProcessingWorker]]] = {}
+worker_classes: Dict[str, Type["QueueProcessingWorker"]] = {}
+queues: Dict[str, Dict[str, Type["QueueProcessingWorker"]]] = {}

-AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional[LDAPSearch] = None
+AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional["LDAPSearch"] = None

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-22 11:02:32 -07:00
..
airbrake python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
alertmanager python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
ansibletower python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
appfollow python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
appveyor python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
basecamp webhooks/basecamp: Add support for todo_uncompleted event type. 2020-04-17 09:41:55 -07:00
beanstalk python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
beeminder python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
bitbucket python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
bitbucket2 python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
bitbucket3 python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
buildbot python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
circleci python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
clubhouse python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
codeship python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
crashlytics python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
delighted python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
deskdotcom python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
dialogflow webhooks/dialogflow: Remove default value for email parameter. 2020-04-17 09:41:55 -07:00
dropbox python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
errbit python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
flock python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
freshdesk python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
front text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
gci python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
gitea python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
github webhooks/github: Delete a duplicate fixture. 2020-04-17 09:41:55 -07:00
gitlab python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
gocd python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
gogs python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
gosquared python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
greenhouse python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
groove python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
harbor python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
hellosign python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
helloworld python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
heroku python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
homeassistant python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
honeybadger/fixtures inetgrations: Add webhook payloads for Honeybadger. 2018-01-02 11:45:33 -05:00
ifttt python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
insping python: Whitespace fixes from autopep8. 2020-04-21 17:58:09 -07:00
intercom python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
jira python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
librato python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
mention python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
netlify python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
newrelic python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
opbeat python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
opsgenie python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
pagerduty python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
papertrail python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
pingdom python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
pivotal python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
raygun python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
reviewboard python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
rollbar/fixtures integrations: Add webhook payloads for rollbar. 2018-01-11 06:32:37 -05:00
runscope/fixtures integrations: Add webhook payloads for Runscope. 2017-12-29 07:27:20 -05:00
semaphore webhooks/semaphore: Remove accidentally created fixture file. 2020-04-17 09:41:55 -07:00
sentry python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
slack python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
solano python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
splunk python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
statuspage python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
stripe python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
taiga python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
teamcity webhooks/teamcity: Change teamcity build triggering user to iago. 2020-04-17 09:41:55 -07:00
transifex python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
travis python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
trello python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
updown python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
wordpress python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
yo python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
zabbix python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
zapier python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
zendesk python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
__init__.py