A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
lint: parse_dataclass (#1805)
Dylan Madisetti09004109ff6c
diff --git a/marimo/_utils/parse_dataclass.py b/marimo/_utils/parse_dataclass.pyindex 2eaa80ac92..ec9b5dc671 100644--- a/marimo/_utils/parse_dataclass.py+++ b/marimo/_utils/parse_dataclass.py@@ -82,7 +82,7 @@ def _build_value(value: Any, cls: Type[T]) -> T:f"Value '{value}' does not fit any type of the literal")return value # type: ignore[no-any-return]- elif type(cls) == type(Enum) and issubclass(cls, Enum):+ elif type(cls) is type(Enum) and issubclass(cls, Enum):return cls(value) # type: ignore[return-value]elif dataclasses.is_dataclass(cls):return build_dataclass(value, cls) # type: ignore[return-value]