1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

fix cast formatting

This commit is contained in:
Alex Zorin
2023-04-18 08:13:28 +10:00
parent 5503d12395
commit ef5f4cae04
5 changed files with 10 additions and 10 deletions

View File

@@ -63,8 +63,8 @@ class Authenticator(dns_common.DNSAuthenticator):
def _get_dnsmadeeasy_client(self) -> "_DNSMadeEasyLexiconClient":
if not self.credentials: # pragma: no cover
raise errors.Error("Plugin has not been prepared.")
return _DNSMadeEasyLexiconClient(cast(str,self.credentials.conf('api-key')),
cast(str,self.credentials.conf('secret-key')),
return _DNSMadeEasyLexiconClient(cast(str, self.credentials.conf('api-key')),
cast(str, self.credentials.conf('secret-key')),
self.ttl)

View File

@@ -65,8 +65,8 @@ class Authenticator(dns_common.DNSAuthenticator):
if not self.credentials: # pragma: no cover
raise errors.Error("Plugin has not been prepared.")
return _GehirnLexiconClient(
cast(str,self.credentials.conf('api-token')),
cast(str,self.credentials.conf('api-secret')),
cast(str, self.credentials.conf('api-token')),
cast(str, self.credentials.conf('api-secret')),
self.ttl
)

View File

@@ -62,7 +62,7 @@ class Authenticator(dns_common.DNSAuthenticator):
def _get_linode_client(self) -> '_LinodeLexiconClient':
if not self.credentials: # pragma: no cover
raise errors.Error("Plugin has not been prepared.")
api_key = cast(str,self.credentials.conf('key'))
api_key = cast(str, self.credentials.conf('key'))
api_version: Optional[Union[str, int]] = self.credentials.conf('version')
if api_version == '':
api_version = None

View File

@@ -60,8 +60,8 @@ class Authenticator(dns_common.DNSAuthenticator):
def _get_luadns_client(self) -> "_LuaDNSLexiconClient":
if not self.credentials: # pragma: no cover
raise errors.Error("Plugin has not been prepared.")
return _LuaDNSLexiconClient(cast(str,self.credentials.conf('email')),
cast(str,self.credentials.conf('token')),
return _LuaDNSLexiconClient(cast(str, self.credentials.conf('email')),
cast(str, self.credentials.conf('token')),
self.ttl)

View File

@@ -67,9 +67,9 @@ class Authenticator(dns_common.DNSAuthenticator):
raise errors.Error("Plugin has not been prepared.")
return _OVHLexiconClient(
cast(str, self.credentials.conf('endpoint')),
cast(str,self.credentials.conf('application-key')),
cast(str,self.credentials.conf('application-secret')),
cast(str,self.credentials.conf('consumer-key')),
cast(str, self.credentials.conf('application-key')),
cast(str, self.credentials.conf('application-secret')),
cast(str, self.credentials.conf('consumer-key')),
self.ttl
)