Fix typing in team_keys_lambda

This commit is contained in:
Mikhail f. Shiryaev 2022-11-28 17:17:45 +01:00
parent 3bf3dacb4d
commit eacf7e01a1
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -14,7 +14,7 @@ import boto3 # type: ignore
class Keys(set):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.updated_at = 0
self.updated_at = 0.0
def update_now(self):
self.updated_at = datetime.now().timestamp()
@ -88,7 +88,7 @@ def get_token_from_aws() -> str:
)
get_secret_value_response = client.get_secret_value(SecretId=secret_name)
data = json.loads(get_secret_value_response["SecretString"])
return data["clickhouse_robot_token"]
return data["clickhouse_robot_token"] # type: ignore
def main(token: str, org: str, team_slug: str) -> str: