Skip to content

Commit ad626c9

Browse files
Merge pull request #12 from nickyoung-github/python-compat
Fix typo
2 parents b2a7566 + e020ee9 commit ad626c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_bind/cpp_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def cpp_default(value: Any) -> str | None:
4444
elif isinstance(value, str):
4545
return f'"{value}"'
4646
elif isinstance(value, Enum):
47-
return f"{type(value).__name__}::value.name"
47+
return f"{type(value).__name__}::{value.name}"
4848
elif isinstance(value, (int, float)):
4949
return str(value)
5050
elif isinstance(value, (list, set, tuple)):

0 commit comments

Comments
 (0)