-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlyteABCMeta Instancecheck Is Wrong #522
Comments
The error message should be clearer yes, but I'll deal with it after the mypy flytekit is done. We're also gonna get rid of six so maybe the base abc can just go away too in favor of the default one. And you know it should be |
@wild-endeavor Maybe we should clear up this issue, if we think with 3.7+ this is not a problem |
Closing this bugt, as we did not hear back and a fix has been merged |
Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
…r project attributes (flyteorg#522) Signed-off-by: Yee Hing Tong <[email protected]>
…r project attributes (flyteorg#522) Signed-off-by: Yee Hing Tong <[email protected]>
Describe the bug
I found this:
16:19:28 File "/code/gschemavalidator/workflows/tasks.py", line 56, in
16:19:28 @python_task()
16:19:28 File "/srv/service/venv/lib/python3.6/site-packages/flytekit/sdk/tasks.py", line 103, in apply_outputs_wrapper
16:19:28 _type_helpers.python_std_to_sdk_type(v).to_flyte_literal_type(),
16:19:28 File "/srv/service/venv/lib/python3.6/site-packages/flytekit/common/types/helpers.py", line 54, in python_std_to_sdk_type
16:19:28 out = e.python_std_to_sdk_type(t)
16:19:28 File "/srv/service/venv/lib/python3.6/site-packages/flytekit/type_engines/default/flyte.py", line 69, in python_std_to_sdk_type
16:19:28 elif isinstance(t, _base_sdk_types.FlyteSdkType):
16:19:28 File "/srv/service/venv/lib/python3.6/site-packages/flytekit/models/common.py", line 15, in instancecheck
16:19:28 return super(FlyteABCMeta, cls).instancecheck(instance)
16:19:28 TypeError: instancecheck() missing 1 required positional argument: 'instance'
16:19:28 Makefile:51: recipe for target 'register_for_pr' failed
When I created a workflow with a task like, note that should be Types.Schema():
@outputs(thing=Types.Schema)
@python_task()
def my_task(wf_params, thing):
pass
Expected behavior
This should fail with a clear error message
Flyte component
To Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Flyte component
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: