I've got a bit of a head scratcher. This seems lik...
# ask-community
d
I've got a bit of a head scratcher. This seems like a library bug, but I can't believe this would have gone unnoticed.
Copy code
dagster._check.ParameterCheckError: Param "partition_mapping" is not a PartitionMapping. Got <class 'dagster._core.definitions.partition_mapping.AllPartitionMapping'> which is type <class 'abc.ABCMeta'>.
The relevant code in the asset is:
Copy code
@asset(
    required_resource_keys={"duckdb"},
    ins={
        "asset1": AssetIn(partition_mapping=AllPartitionMapping),
        "asset2": AssetIn(partition_mapping=AllPartitionMapping),
    },
)
j
I think you might need to fully instantiate the
AllPartitionMapping
Copy code
@asset(
    required_resource_keys={"duckdb"},
    ins={
        "asset1": AssetIn(partition_mapping=AllPartitionMapping()), # added ()
        "asset2": AssetIn(partition_mapping=AllPartitionMapping()), # added ()
    },
)
❤️ 1