Skip to content

Commit 547d58b

Browse files
sandereggCopilot
andauthored
Update packages/aws-library/src/aws_library/ec2/_models.py
Co-authored-by: Copilot <[email protected]>
1 parent 9c37d09 commit 547d58b

File tree

1 file changed

+1
-1
lines changed
  • packages/aws-library/src/aws_library/ec2

1 file changed

+1
-1
lines changed

packages/aws-library/src/aws_library/ec2/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def validate_bash_calls(cls, v):
180180
temp_file.writelines(v)
181181
temp_file.flush()
182182
# NOTE: this will not capture runtime errors, but at least some syntax errors such as invalid quotes
183-
sh.bash("-n", temp_file.name) # pyright: ignore[reportCallIssue]
183+
sh.bash("-n", temp_file.name) # pyright: ignore[reportCallIssue] # sh is untyped, but this call is safe for bash syntax checking
184184
except sh.ErrorReturnCode as exc:
185185
msg = f"Invalid bash call in custom_boot_scripts: {v}, Error: {exc.stderr}"
186186
raise ValueError(msg) from exc

0 commit comments

Comments
 (0)