Skip to content

Commit defac1c

Browse files
committed
fix style
1 parent f03605f commit defac1c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/azure-cli-core/azure/cli/core/aaz/_arg.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,12 +600,11 @@ def __init__(self, fmt=None, **kwargs):
600600

601601

602602
class AAZFileBytesArg(AAZStrArg):
603-
"""Argument that accepts a file path and returns both file content in bytes"""
604-
603+
"""Argument that accepts a file path and returns file content in bytes"""
605604
def __init__(self, fmt=None, **kwargs):
606605
fmt = fmt or AAZFileBytesArgFormat()
607606
super().__init__(fmt=fmt, **kwargs)
608-
607+
609608
@property
610609
def _type_in_help(self):
611610
return "File Bytes"

src/azure-cli-core/azure/cli/core/aaz/_arg_fmt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,16 +749,15 @@ def read_file(self, file_path):
749749

750750

751751
class AAZFileBytesArgFormat(AAZBaseArgFormat):
752-
"""Format for file info argument that returns both filename and content"""
753-
752+
"""Format for file info argument that returns content"""
754753
def __call__(self, ctx, value):
755754
assert isinstance(value, AAZSimpleValue)
756755
data = value._data
757756
if data == AAZUndefined or data is None or value._is_patch:
758757
return value
759758

760759
assert isinstance(data, str)
761-
760+
762761
if not os.path.isfile(data):
763762
raise AAZInvalidArgValueError(f"File '{data}' doesn't exist")
764763

0 commit comments

Comments
 (0)