Stefan Krawczyk
Stefan Krawczyk
@gatorsmile that one works, thanks.
This code works ```python import typing as t import pandas as pd def foo_union(x: t.Union[int, pd.Series]) -> t.Union[int, pd.Series]: '''foo union''' return x + 1 from hamilton.driver import Driver from...
LGTM - you need to approve @elijahbenizzy
@jameslamb yeah I think some of those warnings are invalid, for others you're correct. As long as we can annotate that certain cases should be skipped then I think this...
Sorry @jameslamb let me add `black` to my TODO list for this week/next week so I can unblock this. Issue for reference https://github.com/stitchfix/hamilton/issues/174
FYI @jameslamb #184 by @elijahbenizzy will be merged tomorrow (🤞).
@jameslamb you're good.
What does not work when run within a FastAPI web app:: ```python async def get_from_db(...): return await db_load def my_function(...): result = asyncio.run(get_from_db(...)) return result ``` Error: ``` RuntimeError: asyncio.run()...
Related gist - https://gist.github.com/shelmigtwo/56d9f2874e93c6281c456c9187850dbf
Released as part of 1.10.0