We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c37d09 commit 547d58bCopy full SHA for 547d58b
packages/aws-library/src/aws_library/ec2/_models.py
@@ -180,7 +180,7 @@ def validate_bash_calls(cls, v):
180
temp_file.writelines(v)
181
temp_file.flush()
182
# 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]
+ sh.bash("-n", temp_file.name) # pyright: ignore[reportCallIssue] # sh is untyped, but this call is safe for bash syntax checking
184
except sh.ErrorReturnCode as exc:
185
msg = f"Invalid bash call in custom_boot_scripts: {v}, Error: {exc.stderr}"
186
raise ValueError(msg) from exc
0 commit comments