zulip/zerver/views
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
..
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
attachments.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
auth.py auth: Try switching to register even if user exists on another realm. 2017-11-28 16:38:41 -08:00
compatibility.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
custom_profile_fields.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
email_log.py invitations: Remove custom_body. 2017-12-11 19:23:54 -08:00
email_mirror.py zerver/views: Remove absolute_import. 2017-09-27 10:00:39 -07:00
events_register.py Support client_gravatar field for event registration. 2017-11-07 10:42:17 -08:00
home.py settings: Send bot types from the backend instead of hardcoding them. 2017-11-30 15:28:53 -08:00
hotspots.py views: Fix imports of REQ/has_request_variables from the wrong place. 2017-10-27 15:07:31 -07:00
integrations.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
invite.py mypy: Use Python 3 type syntax in zerver/views/invite.py. 2017-12-11 20:30:19 -08:00
messages.py IRC mirror: No longer require IRC stream names to start with #. 2017-12-12 10:04:31 -06:00
muting.py decorator: Cut a bunch of dead imports of two view decorators. 2017-11-04 19:27:00 -07:00
pointer.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
presence.py decorator: Cut a bunch of dead imports of two view decorators. 2017-11-04 19:27:00 -07:00
push_notifications.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
reactions.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
realm.py mypy: User Python 3 syntax for typing in realm.py. 2017-12-08 18:34:26 -08:00
realm_domains.py zerver/views: Text-wrap long lines exceeding 110. 2017-11-07 17:24:09 -08:00
realm_emoji.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
realm_filters.py mypy: Use Python 3 type syntax in zerver/views/realm_filters.py. 2017-12-09 16:50:12 -08:00
realm_icon.py zerver/views: Use python 3 syntax for typing. 2017-10-26 21:58:22 -07:00
registration.py registration: Clarify realm_creation conditionals in accounts_register. 2017-12-11 18:36:14 -08:00
report.py queue processor tests: Call consume by default. 2017-11-26 11:45:34 -08:00
storage.py zerver/views: Revert to Python 2 typing syntax for now (storage, streams). 2017-12-13 10:20:11 -08:00
streams.py zerver/views: Revert to Python 2 typing syntax for now (storage, streams). 2017-12-13 10:20:11 -08:00
tutorial.py mypy: Use Python 3 syntax for typing in views/tutorial.py. 2017-12-08 18:34:26 -08:00
typing.py decorator: Cut a bunch of dead imports of two view decorators. 2017-11-04 19:27:00 -07:00
unsubscribe.py unsubscribe: Use a custom confirmation error page. 2017-11-07 16:02:49 -08:00
upload.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
user_groups.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
user_settings.py mypy: Use Python 3 type syntax in user_settings.py 2017-12-11 20:33:00 -08:00
users.py zerver/views: Use Python 3 syntax for typing. 2017-11-27 17:10:39 -08:00
zephyr.py zephyr: Update path to process_cache for repository split. 2017-10-05 12:35:20 -07:00