Skip to content

Commit 9e6e92d

Browse files
committed
Fix mypy
1 parent a42297c commit 9e6e92d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dapla_metadata/datasets/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,9 @@ def copy_variable(
575575

576576
source_variable = source_variables_lookup[source_short_name]
577577
# Always override the data type to ensure it matches the physical dataset.
578-
source_variable.data_type = self.variables_lookup[target_short_name].data_type
578+
source_variable.data_type = self.variables_lookup[ # type: ignore[assignment]
579+
target_short_name
580+
].data_type
579581
self.variables_lookup[target_short_name] = source_variable
580582

581583
source_variable = all_optional_model.Variable.model_validate(source_variable)

0 commit comments

Comments
 (0)