Add PEP-484 type annotations to zerver/*.py.

This commit is contained in:
Tim Abbott
2016-01-25 18:10:17 -08:00
parent ee8be22160
commit 32f8f85f8b
2 changed files with 3 additions and 1 deletions

View File

@@ -385,7 +385,7 @@ class REQ(object):
"""
self.post_var_name = whence
self.func_var_name = None
self.func_var_name = None # type: str
self.converter = converter
self.validator = validator
self.default = default

View File

@@ -1,4 +1,5 @@
from __future__ import absolute_import
from typing import *
import re
from django.contrib.staticfiles.finders import FileSystemFinder
@@ -9,6 +10,7 @@ class ExcludeUnminifiedMixin(object):
in production. """
def list(self, ignore_patterns):
# type: (Any) -> Generator[Tuple[str, str], None, None]
# We can't use ignore_patterns because the patterns are
# applied to just the file part, not the entire path
excluded = '^(js|styles|templates)/'