bugfix: cast path to str in templates_edit (#1031)

This commit is contained in:
Abizer Lokhandwala 2025-05-23 23:34:16 -07:00 committed by GitHub
parent ccc52265e9
commit 9dace69af7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2305,7 +2305,7 @@ def templates_edit(name):
path = template_dir() / f"{name}.yaml"
if not path.exists():
path.write_text(DEFAULT_TEMPLATE, "utf-8")
click.edit(filename=path)
click.edit(filename=str(path))
# Validate that template
load_template(name)