From bb6fcaa4e79650d711557422b7736087b482ea42 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 11 Sep 2016 15:52:04 -0700 Subject: [PATCH] Annotate commands/export_usermessage_batch.py. --- zerver/management/commands/export_usermessage_batch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zerver/management/commands/export_usermessage_batch.py b/zerver/management/commands/export_usermessage_batch.py index 71916fd4d4..c09c845ef4 100644 --- a/zerver/management/commands/export_usermessage_batch.py +++ b/zerver/management/commands/export_usermessage_batch.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 @@ -17,6 +20,7 @@ class Command(BaseCommand): help = """UserMessage fetching helper for export.py""" def add_arguments(self, parser): + # type: (ArgumentParser) -> None parser.add_argument('--path', dest='path', action="store", @@ -29,6 +33,7 @@ class Command(BaseCommand): help='Thread ID') def handle(self, *args, **options): + # type: (*Any, **Any) -> None logging.info("Starting UserMessage batch thread %s" % (options['thread'],)) files = set(glob.glob(os.path.join(options['path'], 'messages-*.json.partial'))) for partial_path in files: