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

@@ -3,8 +3,7 @@ from django.db import models, migrations
from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def set_tutorial_status_to_finished(apps, schema_editor):
# type: (StateApps, DatabaseSchemaEditor) -> None
def set_tutorial_status_to_finished(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
UserProfile = apps.get_model('zerver', 'UserProfile')
UserProfile.objects.update(tutorial_status=u'F')