π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix: use StrEnum instead of string and enum (#3573)
Siddd66489b22d51
diff --git a/kornia/config.py b/kornia/config.pyindex 6ed670d40..32bd470c8 100644--- a/kornia/config.py+++ b/kornia/config.py@@ -17,12 +17,12 @@import osfrom dataclasses import dataclass, field-from enum import Enum+from enum import StrEnum__all__ = ["InstallationMode", "kornia_config"]-class InstallationMode(str, Enum):+class InstallationMode(StrEnum):"""Represent the installation mode for external dependencies."""# Ask the user if to install the dependencies