From 52c6efa0a84334522cdd76e1e85ffe6bf601ea02 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 11 Sep 2016 15:54:02 -0700 Subject: [PATCH] Annotate commands/export_single_user.py. --- zerver/management/commands/export_single_user.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zerver/management/commands/export_single_user.py b/zerver/management/commands/export_single_user.py index 25c1c2616a..467f3625d4 100644 --- a/zerver/management/commands/export_single_user.py +++ b/zerver/management/commands/export_single_user.py @@ -1,6 +1,9 @@ from __future__ import absolute_import from __future__ import print_function +from typing import Any + +from argparse import ArgumentParser from django.core.management.base import BaseCommand, CommandError from django.core.exceptions import ValidationError @@ -23,6 +26,7 @@ class Command(BaseCommand): with (for example) any bots owned by the user.""" def add_arguments(self, parser): + # type: (ArgumentParser) -> None parser.add_argument('email', metavar='', type=str, help="email of user to export") parser.add_argument('--output', @@ -32,6 +36,7 @@ class Command(BaseCommand): help='Directory to write exported data to.') def handle(self, *args, **options): + # type: (*Any, **Any) -> None try: user_profile = get_user_profile_by_email(options["email"]) except UserProfile.DoesNotExist: