Fix populate_db send_messages annotation.

This commit is contained in:
Tim Abbott 2016-06-04 16:04:02 -07:00
parent 7c2c7fb31c
commit f2320bf27f
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ def restore_saved_messages():
# - multiple messages per subject # - multiple messages per subject
# - both single and multi-line content # - both single and multi-line content
def send_messages(data): def send_messages(data):
# type: ignore # Should be (Tuple[int, List[UserProfile], Dict[str, Any], Any]) -> int # type: (Tuple[int, List[List[UserProfile]], Dict[str, Any], Any]) -> int
(tot_messages, personals_pairs, options, output) = data (tot_messages, personals_pairs, options, output) = data
random.seed(os.getpid()) random.seed(os.getpid())
texts = open("zilencer/management/commands/test_messages.txt", "r").readlines() texts = open("zilencer/management/commands/test_messages.txt", "r").readlines()