zilencer/management: Use Python 3 syntax for typing.

This commit is contained in:
rht 2017-11-27 11:08:59 +00:00 committed by Greg Price
parent 620b2cd6e2
commit 92d62f62e1
2 changed files with 3 additions and 4 deletions

View File

@ -58,11 +58,11 @@ From image editing program:
"```math\n\\int_a^b f(t)\, dt=F(b)-F(a)\n```"},
{'sender': fisher,
'content': "My favorite is the syntax highlighting for code blocks\n"
"```python\ndef fib(n):\n # returns the n-th Fibonacci number\n"
"```python\ndef fib(n: int) -> int:\n # returns the n-th Fibonacci number\n"
" return fib(n-1) + fib(n-2)\n```"},
{'sender': starr,
'content': "I think you forgot your base case there, Bel :laughing:\n"
"```quote\n```python\ndef fib(n):\n # returns the n-th Fibonacci number\n"
"```quote\n```python\ndef fib(n: int) -> int:\n # returns the n-th Fibonacci number\n"
" return fib(n-1) + fib(n-2)\n```\n```"},
{'sender': fisher,
'content': "I'm also a big fan of inline link, tweet, video, and image previews. "

View File

@ -511,8 +511,7 @@ def create_user_presences(user_profiles: Iterable[UserProfile]) -> None:
timestamp=date,
status=status)
def create_user_groups():
# type: () -> None
def create_user_groups() -> None:
zulip = get_realm('zulip')
members = [get_user('cordelia@zulip.com', zulip),
get_user('hamlet@zulip.com', zulip)]