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
A quick look at the issue shows that the type annotations get turned into strings with from __future__ import annotations (postponed evaluation of annotations), which interferes with the Warp Var.type variables created for the kernel parameters. Here's a minimal example :
We've just merged some changes in e10a583 to add support for from __future__ import annotations. It's available in the branch main for now and will be part of the next release.
Bug Description
When I add
from __future__ import annotations
to a warp script, the kernel wont compile, the first thing I hit is in:
python\warp\types.py
;'str' object has no attribute '__module__'
removing the annotations import makes it go away
Thanks,
Koen
System Information
Windows 11, Python 3.10
The text was updated successfully, but these errors were encountered: