Add type hints to SCRAM ctor (sasl.scram)

This commit is contained in:
jesopo 2019-02-06 22:33:30 +00:00
parent 50a8de2792
commit 1bac2f67de

View file

@ -27,7 +27,7 @@ class SCRAMError(Exception):
pass
class SCRAM(object):
def __init__(self, algo, username, password):
def __init__(self, algo: str, username: str, password: str):
if not algo in ALGORITHMS:
raise ValueError("Unknown SCRAM algorithm '%s'" % algo)