Skip to content

Commit 28db920

Browse files
author
Saimon Michelson
committed
update to pass lint
1 parent 10c74d5 commit 28db920

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cterasdk/clients/async_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def wrapper(self, n=-1):
8484

8585
def ensure_session(func):
8686
def wrapper(self, *args, **kwargs):
87-
if self._session is not None and not self._session.closed: #pylint: disable=protected-access
87+
if self._session is not None and not self._session.closed: # pylint: disable=protected-access
8888
return func(self, *args, **kwargs)
8989
return None
9090
return wrapper

cterasdk/conf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Literal, Optional
1+
from typing import Literal, Optional, Union
22
from pydantic import BaseModel, Field
33

44

@@ -42,7 +42,7 @@ class AsynchronousClient(BaseSettings):
4242
))
4343

4444

45-
SSLCloudServices = Literal["prompt"] | bool
45+
SSLCloudServices = Union[Literal["prompt"], bool]
4646

4747

4848
class CloudServices(BaseSettings):

0 commit comments

Comments
 (0)