Skip to content

Commit

Permalink
Update datasets.py
Browse files Browse the repository at this point in the history
Signed-off-by: pem70 <[email protected]>
  • Loading branch information
pem70 committed Jul 15, 2024
1 parent 46ea1fa commit 5aac8fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zos_files/zowe/zos_files_for_zowe_sdk/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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()
Expand Down

0 comments on commit 5aac8fb

Please sign in to comment.