You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PEP 593 and Python 3.9 introduce a type Annotated[type_, metadata], and this might allow our make_op() and make_funsor() annotations compatible with typecheckers like mypy.
fritzo
changed the title
Use typing.Annotated[mypy_compatible_type, funsor_metadata] in make_funsor()
Use typing.Annotated[mypy_compatible_type, funsor_metadata]
Apr 8, 2021
PEP 593 and Python 3.9 introduce a type
Annotated[type_, metadata]
, and this might allow ourmake_op()
andmake_funsor()
annotations compatible with typecheckers like mypy.For example usage, see https://github.com/patrick-kidger/torchtyping
The text was updated successfully, but these errors were encountered: