metagraph-dev / metagraph

Multi-target API for graph analytics with Dask
https://metagraph.readthedocs.io/en/latest/
Apache License 2.0
27 stars 7 forks source link

Give `Placeholder` a `key` property #174

Closed seibert closed 3 years ago

seibert commented 3 years ago

Since Placeholder objects represent their final value with a single key (like Delayed), it makes sense for them to have a key property, similar to Delayed. See:

https://github.com/dask/dask/blob/master/dask/delayed.py#L525-L527

This will make writing tests more convenient.