zulip/zerver
Greg Price 17a6632c43 zerver/views: Revert to Python 2 typing syntax for now (storage, streams).
This reverts commit 620b2cd6e.

Contributors setting up a new development environment were getting
errors like this:
```
++ dirname tools/do-destroy-rebuild-database
[...]
+ ./manage.py purge_queue --all
Traceback (most recent call last):
[...]
  File "/home/zulipdev/zulip/zproject/legacy_urls.py", line 3, in <module>
    import zerver.views.streams
  File "/home/zulipdev/zulip/zerver/views/streams.py", line 187, in <module>
    method_kwarg_pairs: List[FuncKwargPair]) -> HttpResponse:
  File "/usr/lib/python3.5/typing.py", line 1025, in __getitem__
    tvars = _type_vars(params)
[...]
  File "/usr/lib/python3.5/typing.py", line 277, in _get_type_vars
    for t in types:
TypeError: 'ellipsis' object is not iterable
```

The issue appears to be that we're using the `typing` module from the
3.5 stdlib, rather than the `typing=3.6.2` in our requirements files,
and that doesn't understand the `Callable[..., HttpResponse]` that
appears in the definition of `FuncKwargPair`.

Revert for now to get provision working again; at least one person
reports that reverting this sufficed.  We'll need to do more testing
before putting this change back in.
2017-12-13 10:20:11 -08:00
..
fixtures markdown: Add automatic numbering of ordered lists. 2017-12-12 18:35:38 -06:00
lib logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
management logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
migrations quick fix: Fix migrations to be linear. 2017-12-12 11:31:07 -06:00
templatetags markdown processor: Exclude some files from macro substitution. 2017-11-22 10:29:07 -08:00
tests Streams: Disallow certain markdown characters in stream names. 2017-12-12 10:04:31 -06:00
tornado mypy: Use Python 3 type syntax in zerver/tornado/websocket_client.py. 2017-12-09 16:50:12 -08:00
views zerver/views: Revert to Python 2 typing syntax for now (storage, streams). 2017-12-13 10:20:11 -08:00
webhooks mypy: Use Python 3 type syntax in wordpress/view.py 2017-12-11 20:33:00 -08:00
worker invitations: Remove custom_body. 2017-12-11 19:23:54 -08:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
decorator.py logging: Reduce `create_logger` to new `log_to_file`. 2017-12-12 17:17:08 -08:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
logging_handlers.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
middleware.py mypy: Use Python 3 type syntax in zerver/middleware.py. 2017-12-11 18:43:24 -08:00
models.py UserProfile: Disallow markdown character in the user profile name. 2017-12-12 10:04:31 -06:00
signals.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
static_header.txt
storage.py mypy: Improve typing for ManifestStaticFilesStorage monkeypatch. 2017-12-08 19:00:18 -08:00