8000 use StrEnum · localstack/localstack@a0ca9e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0ca9e4

Browse files
committed
use StrEnum
1 parent a6df13b commit a0ca9e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localstack-core/localstack/utils/aws/client_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import abc
2+
from enum import StrEnum
23
from typing import TYPE_CHECKING, Union
34

45
"""
@@ -249,7 +250,7 @@ class TypedServiceClientFactory(abc.ABC):
249250
xray: Union["XRayClient", "MetadataRequestInjector[XRayClient]"]
250251

251252

252-
class ServicePrincipal(str):
253+
class ServicePrincipal(StrEnum):
253254
"""
254255
Class containing defined service principals.
255256
To add to this list, please look up the correct service principal name for the service.

0 commit comments

Comments
 (0)
0