Skip to content

Commit 664db97

Browse files
marcelsafinCopilot
andcommitted
fix(integrations): use sys.maxsize instead of float inf for yaml width
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2ed5735 commit 664db97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/specify_cli/integrations

src/specify_cli/integrations/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ def _render_yaml(cls, title: str, description: str, body: str, source_id: str) -
12521252
# back to an escaped double-quoted scalar for those bodies.
12531253
if _YAML_BLOCK_SCALAR_UNSAFE.search(body):
12541254
prompt_yaml = yaml.safe_dump(
1255-
{"prompt": body}, allow_unicode=True, default_style='"', width=float("inf")
1255+
{"prompt": body}, allow_unicode=True, default_style='"', width=sys.maxsize
12561256
).strip()
12571257
lines = [
12581258
header_yaml,

0 commit comments

Comments
 (0)