We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a42297c commit 9e6e92dCopy full SHA for 9e6e92d
src/dapla_metadata/datasets/core.py
@@ -575,7 +575,9 @@ def copy_variable(
575
576
source_variable = source_variables_lookup[source_short_name]
577
# 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
+ source_variable.data_type = self.variables_lookup[ # type: ignore[assignment]
579
+ target_short_name
580
+ ].data_type
581
self.variables_lookup[target_short_name] = source_variable
582
583
source_variable = all_optional_model.Variable.model_validate(source_variable)
0 commit comments