mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
Add PEP-484 type annotations to zerver/*.py.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)/'
|
||||
|
||||
Reference in New Issue
Block a user