Skip to content

Commit dda8645

Browse files
author
Caitlin Bales (MSFT)
authored
Merge pull request #69 from microsoftgraph/caitbal/python
Fix Python enum type
2 parents 8a74443 + bfd872c commit dda8645

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Templates/Python/Model/EnumType.py.tt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ class <#=enumT.Name.ToUpperFirstChar()#>(Enum):
1616
count = 0
1717
foreach(var value in enumT.Members)
1818
{
19-
count++;
19+
2020
#>
2121
#<#= value.Name.SplitCamelCase()#>
22-
<#= value.Name.SanitizePropertyName()#> = <#= count#>
22+
<#= value.Name.SanitizePropertyName()#> = "<#= count#>"
2323
<#
24+
count++;
2425
}
2526
#>

0 commit comments

Comments
 (0)