mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
fix cast formatting
This commit is contained in:
@@ -63,8 +63,8 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
def _get_dnsmadeeasy_client(self) -> "_DNSMadeEasyLexiconClient":
|
def _get_dnsmadeeasy_client(self) -> "_DNSMadeEasyLexiconClient":
|
||||||
if not self.credentials: # pragma: no cover
|
if not self.credentials: # pragma: no cover
|
||||||
raise errors.Error("Plugin has not been prepared.")
|
raise errors.Error("Plugin has not been prepared.")
|
||||||
return _DNSMadeEasyLexiconClient(cast(str,self.credentials.conf('api-key')),
|
return _DNSMadeEasyLexiconClient(cast(str, self.credentials.conf('api-key')),
|
||||||
cast(str,self.credentials.conf('secret-key')),
|
cast(str, self.credentials.conf('secret-key')),
|
||||||
self.ttl)
|
self.ttl)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
if not self.credentials: # pragma: no cover
|
if not self.credentials: # pragma: no cover
|
||||||
raise errors.Error("Plugin has not been prepared.")
|
raise errors.Error("Plugin has not been prepared.")
|
||||||
return _GehirnLexiconClient(
|
return _GehirnLexiconClient(
|
||||||
cast(str,self.credentials.conf('api-token')),
|
cast(str, self.credentials.conf('api-token')),
|
||||||
cast(str,self.credentials.conf('api-secret')),
|
cast(str, self.credentials.conf('api-secret')),
|
||||||
self.ttl
|
self.ttl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
def _get_linode_client(self) -> '_LinodeLexiconClient':
|
def _get_linode_client(self) -> '_LinodeLexiconClient':
|
||||||
if not self.credentials: # pragma: no cover
|
if not self.credentials: # pragma: no cover
|
||||||
raise errors.Error("Plugin has not been prepared.")
|
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')
|
api_version: Optional[Union[str, int]] = self.credentials.conf('version')
|
||||||
if api_version == '':
|
if api_version == '':
|
||||||
api_version = None
|
api_version = None
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
def _get_luadns_client(self) -> "_LuaDNSLexiconClient":
|
def _get_luadns_client(self) -> "_LuaDNSLexiconClient":
|
||||||
if not self.credentials: # pragma: no cover
|
if not self.credentials: # pragma: no cover
|
||||||
raise errors.Error("Plugin has not been prepared.")
|
raise errors.Error("Plugin has not been prepared.")
|
||||||
return _LuaDNSLexiconClient(cast(str,self.credentials.conf('email')),
|
return _LuaDNSLexiconClient(cast(str, self.credentials.conf('email')),
|
||||||
cast(str,self.credentials.conf('token')),
|
cast(str, self.credentials.conf('token')),
|
||||||
self.ttl)
|
self.ttl)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -67,9 +67,9 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||||||
raise errors.Error("Plugin has not been prepared.")
|
raise errors.Error("Plugin has not been prepared.")
|
||||||
return _OVHLexiconClient(
|
return _OVHLexiconClient(
|
||||||
cast(str, self.credentials.conf('endpoint')),
|
cast(str, self.credentials.conf('endpoint')),
|
||||||
cast(str,self.credentials.conf('application-key')),
|
cast(str, self.credentials.conf('application-key')),
|
||||||
cast(str,self.credentials.conf('application-secret')),
|
cast(str, self.credentials.conf('application-secret')),
|
||||||
cast(str,self.credentials.conf('consumer-key')),
|
cast(str, self.credentials.conf('consumer-key')),
|
||||||
self.ttl
|
self.ttl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user