Skip to content
Snippets Groups Projects
Commit 08c78c8d765d authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:lipstick: Use StrEnum added in python 3.11

parent e53df81c48c5
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import logging import logging
import os import os
from collections.abc import Callable from collections.abc import Callable
from enum import Enum from enum import StrEnum
from importlib import import_module from importlib import import_module
from typing import Any, LiteralString from typing import Any, LiteralString
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
class Validation(str, Enum): class Validation(StrEnum):
"""Type of validation""" """Type of validation"""
SKIP = "skip" SKIP = "skip"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment