Skip to content

Commit

Permalink
{AKS} Fix several linter & style issues (#7741)
Browse files Browse the repository at this point in the history
  • Loading branch information
FumingZhang committed Jun 25, 2024
1 parent 14d86c7 commit 51b283f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/aks-preview/azext_aks_preview/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def flatten_version_table(release_info):
def _custom_functions(preview_versions):
class CustomFunctions(functions.Functions): # pylint: disable=too-few-public-methods

@ functions.signature({'types': ['array']})
@functions.signature({'types': ['array']})
def _func_sort_versions(self, versions):
"""Custom JMESPath `sort_versions` function that sorts an array of strings as software versions"""
try:
Expand All @@ -190,7 +190,7 @@ def _func_sort_versions(self, versions):
except (TypeError, ValueError):
return versions

@ functions.signature({'types': ['array']})
@functions.signature({'types': ['array']})
def _func_set_preview_array(self, versions):
"""Custom JMESPath `set_preview_array` function that suffixes preview version"""
try:
Expand All @@ -200,7 +200,7 @@ def _func_set_preview_array(self, versions):
except (TypeError, ValueError):
return versions

@ functions.signature({'types': ['string']})
@functions.signature({'types': ['string']})
def _func_set_preview(self, version):
"""Custom JMESPath `set_preview` function that suffixes preview version"""
try:
Expand All @@ -210,7 +210,7 @@ def _func_set_preview(self, version):
except (TypeError, ValueError):
return version

@ functions.signature({'types': ['object']})
@functions.signature({'types': ['object']})
def _func_pprint_labels(self, labels):
"""Custom JMESPath `pprint_labels` function that pretty print labels"""
if not labels:
Expand Down
3 changes: 2 additions & 1 deletion src/aks-preview/azext_aks_preview/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"azext.minCliCoreVersion": "2.56.0",
"azext.isPreview": true
"azext.isPreview": true,
"name": "aks-preview"
}

0 comments on commit 51b283f

Please sign in to comment.