From 9249c4f2b58915e448a840d42467258ced0fa058 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 28 Jul 2020 16:59:04 -0700 Subject: [PATCH] Finish rename and rearrange imports --- src/replit/maqpy/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/replit/maqpy/utils.py b/src/replit/maqpy/utils.py index 51f5d2b..4399014 100644 --- a/src/replit/maqpy/utils.py +++ b/src/replit/maqpy/utils.py @@ -1,6 +1,6 @@ """Utitilities to make development easier.""" -from typing import Any, Callable from functools import wraps +from typing import Any, Callable import flask @@ -31,7 +31,7 @@ def needs_signin(func: Callable = None, login_html: str = sign_in_snippet) -> Ca Args: func (Callable): The function passed in if used as a decorator. Defaults to None. - loginhtml (str): The HTML to show when the user needs to sign in. Defaults to + login_html (str): The HTML to show when the user needs to sign in. Defaults to sign_in_snippet. Returns: @@ -50,5 +50,5 @@ def needs_signin(func: Callable = None, login_html: str = sign_in_snippet) -> Ca if func is not None: # called with no options @needs_signin return decorator(func) - else: # called with options, eg @needs_signin(loginhtml='...') + else: # called with options, eg @needs_signin(login_html='...') return decorator