Bring back typing check. Meanwhile just for homeassistant/*.py (#14410)
* Bring back typing check. Meanwhile just for homeassistant/.py * Change follow-imports to silent. Add a few more checks.
This commit is contained in:
parent
70af7e5fad
commit
7aec098a05
11 changed files with 41 additions and 30 deletions
|
@ -35,7 +35,7 @@ ACCESS_TOKEN_EXPIRATION = timedelta(minutes=30)
|
|||
DATA_REQS = 'auth_reqs_processed'
|
||||
|
||||
|
||||
def generate_secret(entropy=32):
|
||||
def generate_secret(entropy: int = 32) -> str:
|
||||
"""Generate a secret.
|
||||
|
||||
Backport of secrets.token_hex from Python 3.6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue