Created
September 9, 2016 18:25
-
-
Save jbiason/0ca0d59c270019ee7749ec88a27056fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
VerifyResult = namedtuple('VerifyResult', ['can_login', 'redirect_url']) | |
return VerifyResult(True, URL) | |
VerifyResult(can_login=True, redirect_url='URL') | |
result.can_login | |
result.redirect_url | |
class VerifyResult(object): | |
def __init__(self, can_login, redirect_url): | |
self.can_login = can_login | |
self.redirect_url = redirect_url | |
def fun(): | |
can_login = True | |
redirect_url = None | |
return VerifyResult(can_login, redirect_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment