Skip to content

Commit 918f506

Browse files
fix(qlik_replicate_workspace): use dataclasses.field, not pydantic.Field
@DataClass doesn't recognize pydantic's Field(default_factory=...) — the FieldInfo becomes the actual attribute value at runtime, which fails with 'TypeError: Value after * must be an iterable, not FieldInfo' when we splat asset_key_prefix into the AssetKey list. Use dataclasses.field (same pattern as every other @DataClass StateBackedComponent). Bumps to 0.10.29.
1 parent 2e7be45 commit 918f506

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

integrations/qlik_replicate_workspace/component.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
import hashlib
1818
import json
1919
import time
20-
from dataclasses import dataclass
20+
from dataclasses import dataclass, field
2121
from pathlib import Path
2222
from typing import Any, List, Optional
2323

2424
import dagster as dg
25-
from pydantic import Field
2625

2726
try:
2827
from dagster.components.component.state_backed_component import StateBackedComponent
@@ -147,7 +146,7 @@ class QlikReplicateWorkspaceComponent(StateBackedComponent, dg.Resolvable):
147146
exclude_task_patterns: Optional[List[str]] = None # glob exclude
148147

149148
group_name: Optional[str] = None
150-
asset_key_prefix: List[str] = Field(default_factory=lambda: ["qlik_replicate"])
149+
asset_key_prefix: List[str] = field(default_factory=lambda: ["qlik_replicate"])
151150
compute_kind: str = "qlik_replicate"
152151

153152
# What each asset does when materialized.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "dagster-community-components"
7-
version = "0.10.28"
7+
version = "0.10.29"
88
description = "Community-maintained Dagster components — ingestion, transforms, IO managers, sensors, sinks, resources, and more."
99
readme = "README.md"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)