mirror of https://github.com/zulip/zulip.git
zilencer/management: Use Python 3 syntax for typing.
This commit is contained in:
parent
620b2cd6e2
commit
92d62f62e1
|
@ -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. "
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue