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
Any task's return type hint is lost when annotating it with @task.
Example 1:
classFoo:
deffoo(self):
pass@taskdefget_foo() ->Foo:
returnFoo()
@taskdefget_list() ->List[Any]:
...
@flowdefrun():
result=get_foo() #Type of result is None and not Fooresult2=get_list() # Type of result2 is None and not List[Any]
Version info
Version: 3.1.10
API version: 0.8.4
Python version: 3.11.10
Git commit: b11b56fc
Built: Tue, Dec 24, 2024 10:58 PM
OS/Arch: darwin/arm64
Profile: local
Server type: server
Pydantic version: 2.10.4
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug summary
Any task's return type hint is lost when annotating it with
@task
.Example 1:
Version info
Additional context
No response
The text was updated successfully, but these errors were encountered: