Nathaniel Starkman
Nathaniel Starkman
@wesselb adds a useful nox session
Hi @anishgkr21. Thanks for the interest and for making a PR! I would recommend looking at: - https://github.com/astropy/astropy/pull/14701 and the resulting file - https://github.com/astropy/astropy/blob/main/astropy/cosmology/_src/io/builtin/latex.py Which builds in a Latex writer...
> the extreme alternative that I think I saw proposed is to have a different class for each physical type Yes, that would work but might be quite onerous. Other...
> Annotated[Quantity, X] means type checkers can check if something is a Quantity, but they will ignore X. In other words it does not help type checkers understand physical types,...
@wesselb I don't know how to resolve this serious problem.
Looking at https://github.com/python/cpython/blob/425f24e4fad672c211307a9f0018c8d39c4db9de/Objects/unionobject.c#L279 I kind of doubt the union alias functionality can continue to work this way. A potential alternative would be if beartype could dynamically generate TypeAliasType of the...
Fully functional until py3.14 then they turn into deprecated no-ops.
Tests need adjustment
I can work on this after #179