mirror of https://github.com/zulip/zulip.git
fead14951c
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> |
||
---|---|---|
.. | ||
__init__.py | ||
add_users_to_mailing_list.py | ||
add_users_to_streams.py | ||
archive_messages.py | ||
backup.py | ||
bankrupt_users.py | ||
bulk_change_user_name.py | ||
change_user_email.py | ||
check_redis.py | ||
checkconfig.py | ||
compilemessages.py | ||
convert_gitter_data.py | ||
convert_hipchat_data.py | ||
convert_mattermost_data.py | ||
convert_slack_data.py | ||
create_default_stream_groups.py | ||
create_large_indexes.py | ||
create_realm_internal_bots.py | ||
create_stream.py | ||
create_user.py | ||
deactivate_realm.py | ||
deactivate_user.py | ||
delete_old_unclaimed_attachments.py | ||
deliver_email.py | ||
deliver_scheduled_messages.py | ||
dump_messages.py | ||
email_mirror.py | ||
enqueue_digest_emails.py | ||
enqueue_file.py | ||
export.py | ||
export_single_user.py | ||
export_usermessage_batch.py | ||
fill_memcached_caches.py | ||
fix_unreads.py | ||
generate_invite_links.py | ||
generate_multiuse_invite_link.py | ||
generate_realm_creation_link.py | ||
get_migration_status.py | ||
import.py | ||
knight.py | ||
list_realms.py | ||
logout_all_users.py | ||
makemessages.py | ||
merge_streams.py | ||
print_email_delivery_backlog.py | ||
process_queue.py | ||
purge_queue.py | ||
query_ldap.py | ||
rate_limit.py | ||
reactivate_realm.py | ||
realm_domain.py | ||
realm_filters.py | ||
register_server.py | ||
remove_users_from_stream.py | ||
rename_stream.py | ||
restore_messages.py | ||
runtornado.py | ||
scrub_realm.py | ||
send_custom_email.py | ||
send_password_reset_email.py | ||
send_realm_reactivation_email.py | ||
send_stats.py | ||
send_test_email.py | ||
send_to_email_mirror.py | ||
send_webhook_fixture_message.py | ||
set_message_flags.py | ||
show_admins.py | ||
show_unreads.py | ||
soft_deactivate_users.py | ||
sync_ldap_user_data.py | ||
transfer_uploads_to_s3.py | ||
turn_off_digests.py |