diff --git a/src/zos_files/zowe/zos_files_for_zowe_sdk/datasets.py b/src/zos_files/zowe/zos_files_for_zowe_sdk/datasets.py index 3c74281c..b2c711f8 100644 --- a/src/zos_files/zowe/zos_files_for_zowe_sdk/datasets.py +++ b/src/zos_files/zowe/zos_files_for_zowe_sdk/datasets.py @@ -12,7 +12,7 @@ import os from dataclasses import dataclass -from typing import Optional +from typing import Dict, List, Optional from zowe.core_for_zowe_sdk import SdkApi from zowe.core_for_zowe_sdk.exceptions import FileNotFound @@ -312,7 +312,7 @@ def __init__(self, connection: dict): super().__init__(connection, "/zosmf/restfiles/", logger_name=__name__) self._default_headers["Accept-Encoding"] = "gzip" - def list(self, name_pattern: str, return_attributes: bool = False) -> list[dict]: + def list(self, name_pattern: str, return_attributes: bool = False) -> List[Dict]: """ Retrieve a list of datasets based on a given pattern. @@ -325,7 +325,7 @@ def list(self, name_pattern: str, return_attributes: bool = False) -> list[dict] Returns ------- - list[dict] + List[Dict] A JSON with a list of dataset names (and attributes if specified) matching the given pattern. """ custom_args = self._create_custom_request_arguments()