Closed Koncopd closed 4 months ago
@falexwolf why not just use typing.Union
here?
Yes, that's how I fixed it in my current PR - I want the new annotations for aesthetics reasons. The docs are way too ugly otherwise.
But for a TypeAlias, if Sphinx is properly configured, we'd not see Union, I think.
But in fact it might also not work at all: https://laminlabs.slack.com/archives/C04A0RMA0SC/p1712218806650409?thread_ts=1712086065.426689&cid=C04A0RMA0SC
I'm running docs building within lamindb on Python 3.8 now. This should avoid this from happening again.
due to https://github.com/laminlabs/lamindb-setup/blob/01b1a6864d98672127606fd746c72e841d84a32e/lamindb_setup/core/types.py#L7