Skip to content

Commit

Permalink
Update changelog and compatibility for python 3.8
Browse files Browse the repository at this point in the history
Signed-off-by: pem70 <[email protected]>
  • Loading branch information
pem70 committed Aug 7, 2024
1 parent 7063507 commit a25a464
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil

- Added checks and auto addition for license headers on workflow. [#293] (https://github.com/zowe/zowe-client-python-sdk/issues/293)

- *Breaking*: Update custom class for REST API responses [#89] (https://github.com/zowe/zowe-client-python-sdk/issues/89)

### Bug Fixes

## `1.0.0-dev18`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
Copyright Contributors to the Zowe Project.
"""

from dataclasses import dataclass
from typing import Any, Dict, List, Optional


@dataclass
class DatasetListResponse:
items: Optional[list[dict]] = None
items: Optional[List[dict]] = None
returnedRows: Optional[int] = None
totalRows: Optional[int] = None
JSONversion: Optional[int] = None
Expand Down Expand Up @@ -78,7 +79,7 @@ def __setitem__(self, key: str, value: Any) -> None:

@dataclass
class MemberListResponse:
items: Optional[list[dict]] = None
items: Optional[List[dict]] = None
totalRows: Optional[int] = None
JSONversion: Optional[int] = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Copyright Contributors to the Zowe Project.
"""

from dataclasses import dataclass
from typing import Any, Dict, List, Optional

Expand Down Expand Up @@ -40,7 +41,7 @@ def __setitem__(self, key: str, value: Any) -> None:

@dataclass
class FileSystemListResponse:
items: Optional[list[FileSystemResponse]] = None
items: Optional[List[FileSystemResponse]] = None
returnedRows: Optional[int] = None
totalRows: Optional[int] = None
JSONversion: Optional[int] = None
Expand Down
3 changes: 2 additions & 1 deletion src/zos_files/zowe/zos_files_for_zowe_sdk/response/uss.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Copyright Contributors to the Zowe Project.
"""

from dataclasses import dataclass
from typing import Any, Optional

Expand All @@ -33,7 +34,7 @@ def __setitem__(self, key: str, value: Any) -> None:

@dataclass
class USSListResponse:
items: Optional[list[dict]] = None
items: Optional[List[dict]] = None
returnedRows: Optional[int] = None
totalRows: Optional[int] = None
JSONversion: Optional[int] = None
Expand Down
6 changes: 3 additions & 3 deletions src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

import os
from typing import Optional
from typing import List, Optional

from zowe.core_for_zowe_sdk import SdkApi

Expand Down Expand Up @@ -265,7 +265,7 @@ def list_jobs(
prefix: str = "*",
max_jobs: int = 1000,
user_correlator: Optional[str] = None,
) -> list[JobResponse]:
) -> List[JobResponse]:
"""
Retrieve list of jobs on JES based on the provided arguments.
Expand Down Expand Up @@ -369,7 +369,7 @@ def submit_plaintext(self, jcl: str) -> JobResponse:
response_json = self.request_handler.perform_request("PUT", custom_args, expected_code=[201])
return JobResponse(response_json)

def get_spool_files(self, correlator: str) -> list[SpoolResponse]:
def get_spool_files(self, correlator: str) -> List[SpoolResponse]:
"""
Retrieve the spool files for a job identified by the correlator.
Expand Down
7 changes: 4 additions & 3 deletions src/zos_tso/zowe/zos_tso_for_zowe_sdk/response/tso.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Copyright Contributors to the Zowe Project.
"""

from dataclasses import dataclass
from typing import Any, Dict, List, Optional

Expand All @@ -19,7 +20,7 @@ class StartResponse:
queueID: Optional[str] = None
sessionID: Optional[str] = None
ver: Optional[str] = None
tsoData: Optional[list[dict]] = None
tsoData: Optional[List[dict]] = None
reused: Optional[bool] = None
timeout: Optional[bool] = None

Expand All @@ -37,7 +38,7 @@ class EndResponse:
reused: Optional[bool] = None
timeout: Optional[bool] = None
msgData: Optional[str] = None
msgId: Optional[list] = None
msgId: Optional[List] = None

def __getitem__(self, key: str) -> Any:
return self.__dict__[key]
Expand All @@ -50,7 +51,7 @@ def __setitem__(self, key: str, value: Any) -> None:
class SendResponse:
servletKey: Optional[str] = None
ver: Optional[str] = None
tsoData: Optional[list[dict]] = None
tsoData: Optional[List[dict]] = None
reused: Optional[bool] = None
timeout: Optional[bool] = None

Expand Down

0 comments on commit a25a464

Please sign in to comment.