Skip to content

Commit bdcc0be

Browse files
linting fixes
1 parent bc20fe9 commit bdcc0be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

planet/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def from_plauth(pl_authlib_context: planet_auth.Auth):
155155
return _PLAuthLibAuth(plauth=pl_authlib_context)
156156

157157
@staticmethod
158-
def from_key(key: str) -> AuthType:
158+
def from_key(key: typing.Optional[str]) -> AuthType:
159159
"""Obtain authentication from api key.
160160
161161
Parameters:

planet/auth_builtins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ class _BuiltinConfigurationProvider(BuiltinConfigurationProviderInterface):
102102
# Aliases
103103
# BUILTIN_PROFILE_ALIAS_PLANET_USER = "planet-user"
104104

105-
_builtin_profile_auth_client_configs = {
105+
_builtin_profile_auth_client_configs: Dict[str, dict] = {
106106
# BUILTIN_PROFILE_NAME_SDKCLI_CLIENT_ID: _OIDC_AUTH_CLIENT_CONFIG__SDK_PROD,
107107
BUILTIN_PROFILE_NAME_PLANET_USER: _OIDC_AUTH_CLIENT_CONFIG__SDK_PROD,
108108
BUILTIN_PROFILE_NAME_PLANET_M2M: _OIDC_AUTH_CLIENT_CONFIG__M2M_PROD,
109109
BUILTIN_PROFILE_NAME_LEGACY: _LEGACY_AUTH_CLIENT_CONFIG__PROD,
110110
BUILTIN_PROFILE_NAME_NONE: _NOOP_AUTH_CLIENT_CONFIG,
111111
}
112112

113-
_builtin_profile_aliases = {
113+
_builtin_profile_aliases: dict[str, str] = {
114114
# BUILTIN_PROFILE_ALIAS_PLANET_USER: BUILTIN_PROFILE_NAME_SDKCLI_CLIENT_ID,
115115
}
116116

0 commit comments

Comments
 (0)