Add type hints to SCRAM ctor (sasl.scram)
This commit is contained in:
parent
50a8de2792
commit
1bac2f67de
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class SCRAMError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class SCRAM(object):
|
class SCRAM(object):
|
||||||
def __init__(self, algo, username, password):
|
def __init__(self, algo: str, username: str, password: str):
|
||||||
if not algo in ALGORITHMS:
|
if not algo in ALGORITHMS:
|
||||||
raise ValueError("Unknown SCRAM algorithm '%s'" % algo)
|
raise ValueError("Unknown SCRAM algorithm '%s'" % algo)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue