apache / apache/hamilton

Multiple decorator error when using `@schema.output`

Open
#1,163 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
2.6k
Forks
213
PR merge metrics
No merged PRs in 30d

Description

This is pretty self-explanatory, but just wanted to make sure that this was in fact illegal?

```python
@schema.output(
("ticker", "str"),
("fee", "float")
)
@tag(table_type="reference")
def ref_table_1() -> pd.DataFrame:
...
```

```ValueError: Got multiple decorators for decorator @. Only one allowed.```

[Slack Message](https://hamilton-opensource.slack.com/archives/C03M33QB4M8/p1727897401998989?thread_ts=1727897401.998989&cid=C03M33QB4M8)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.