Skip to content

Commit 327851c

Browse files
authored
fix: Change Inherit from str,enum to StrEnum UP042
1 parent c11d5d6 commit 327851c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openapi_python_client/templates/str_enum.py.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from enum import Enum
1+
from enum import StrEnum
22

3-
class {{ enum.class_info.name }}(str, Enum):
3+
class {{ enum.class_info.name }}(StrEnum):
44
{% for key, value in enum.values|dictsort(true) %}
55
{{ key }} = "{{ value }}"
66
{% endfor %}

0 commit comments

Comments
 (0)