mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +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.post_var_name = whence
|
||||||
self.func_var_name = None
|
self.func_var_name = None # type: str
|
||||||
self.converter = converter
|
self.converter = converter
|
||||||
self.validator = validator
|
self.validator = validator
|
||||||
self.default = default
|
self.default = default
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
from typing import *
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from django.contrib.staticfiles.finders import FileSystemFinder
|
from django.contrib.staticfiles.finders import FileSystemFinder
|
||||||
@@ -9,6 +10,7 @@ class ExcludeUnminifiedMixin(object):
|
|||||||
in production. """
|
in production. """
|
||||||
|
|
||||||
def list(self, ignore_patterns):
|
def list(self, ignore_patterns):
|
||||||
|
# type: (Any) -> Generator[Tuple[str, str], None, None]
|
||||||
# We can't use ignore_patterns because the patterns are
|
# We can't use ignore_patterns because the patterns are
|
||||||
# applied to just the file part, not the entire path
|
# applied to just the file part, not the entire path
|
||||||
excluded = '^(js|styles|templates)/'
|
excluded = '^(js|styles|templates)/'
|
||||||
|
|||||||
Reference in New Issue
Block a user