zerver/migrations: Use python 3 syntax for typing.

This commit is contained in:
rht
2017-10-26 11:36:30 +02:00
committed by Tim Abbott
parent a311678190
commit c2a5b5f160
22 changed files with 50 additions and 86 deletions

View File

@@ -5,8 +5,7 @@ from django.db import migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def delete_old_scheduled_jobs(apps, schema_editor):
# type: (StateApps, DatabaseSchemaEditor) -> None
def delete_old_scheduled_jobs(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
"""Delete any old scheduled jobs, to handle changes in the format of
send_email. Ideally, we'd translate the jobs, but it's not really
worth the development effort to save a few invitation reminders