You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to add some custom metadata fields to dbt assets. For this I created a custom DagsterDbtTranslator and implemented the get_metadata() method.
The method is defined like this:
Mapping implies that one should not change the mapping (and of course your linters tell you not to if you try "__setitem__" method not defined on type "Mapping[str, Any]").
Given that the docs say that one should add custom metadata fields this way, I would expect dbt_resource_props to be of type MutableMapping.
I suggest to either change the type annotation to MutableMapping or to make the docs clearer.
What did you expect to happen?
I expected either a MutableMapping or documentation that would be clearer.
What's the issue?
I wanted to add some custom metadata fields to dbt assets. For this I created a custom
DagsterDbtTranslator
and implemented theget_metadata()
method.The method is defined like this:
SRC
Mapping
implies that one should not change the mapping (and of course your linters tell you not to if you try"__setitem__" method not defined on type "Mapping[str, Any]"
).Given that the docs say that one should add custom metadata fields this way, I would expect
dbt_resource_props
to be of typeMutableMapping
.I suggest to either change the type annotation to
MutableMapping
or to make the docs clearer.What did you expect to happen?
I expected either a
MutableMapping
or documentation that would be clearer.How to reproduce?
Write your own translator like this:
Dagster version
dagster, version 1.9.2
Deployment type
None
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: