zulip/analytics
Anders Kaseorg 69c0959f34 python: Fix misuse of Optional types for optional parameters.
There seems to have been a confusion between two different uses of the
word “optional”:

• An optional parameter may be omitted and replaced with a default
  value.
• An Optional type has None as a possible value.

Sometimes an optional parameter has a default value of None, or None
is otherwise a meaningful value to provide, in which case it makes
sense for the optional parameter to have an Optional type.  But in
other cases, optional parameters should not have Optional type.  Fix
them.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-13 15:31:27 -07:00
..
lib python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
management python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
migrations python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
tests python: Fix misuse of Optional types for optional parameters. 2020-06-13 15:31:27 -07:00
__init__.py Create "analytics" app with activity reports. 2013-11-06 12:07:32 -05:00
models.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
urls.py activity: Create interface for doing support operations. 2019-03-11 12:01:11 -07:00
views.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00