Skip to content

Commit a0f8ef7

Browse files
Fixed type hinting issues
1 parent 943af23 commit a0f8ef7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SoftLayer/API.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class BaseClient(object):
255255
:param transport: An object that's callable with this signature: transport(SoftLayer.transports.Request)
256256
"""
257257
_prefix = "SoftLayer_"
258-
auth: slauth.AuthenticationBase | None
258+
auth: slauth.AuthenticationBase
259259

260260
def __init__(self, auth=None, transport=None, config_file=None):
261261
if config_file is None:
@@ -265,7 +265,7 @@ def __init__(self, auth=None, transport=None, config_file=None):
265265
self.__setAuth(auth)
266266
self.__setTransport(transport)
267267

268-
def __setAuth(self, auth: slauth.AuthenticationBase | None = None):
268+
def __setAuth(self, auth = None):
269269
"""Prepares the authentication property"""
270270
self.auth = auth
271271

SoftLayer/CLI/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def censor_password(value):
3737
help='Login with username, password, yubi key combination. Only valid if ISV is not required. '
3838
'If using ISV, use your session token.')
3939
@environment.pass_env
40-
def cli(env, session_token: str | None, user_id: int | None, legacy: bool):
40+
def cli(env, session_token, user_id, legacy):
4141
"""Logs you into the internal SoftLayer Network.
4242
4343
username: Set this in either the softlayer config, or SL_USER ENV variable

0 commit comments

Comments
 (0)