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
and misses the return statement expected by flytekit since 1.13.1 and introduced in flyteorg/flytekit#2551. This breaks registration as a FlyteMissingReturnValueException is raised.
Expected behavior
As flytekit still supports python 3.9, I would expect registration to work with such wrapped functions.
Potentially we could have a feature gate to only run it for python >=3.11
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
The issue you're describing seems to be related to a known bug in CPython versions <3.10.10, which affects the inspect module and causes it to miss certain source lines for decorated functions. This bug impacts Flytekit's error handling for missing return statements, introduced in Flytekit PR #2551.
To address this, you could consider implementing a feature gate to only run the return statement check for Python versions >=3.11. This would ensure compatibility with older Python versions still supported by Flytekit.
Would you like more details on how to implement this feature gate or any other specific aspect of the issue?
Describe the bug
CPython versions <3.10.10 have a bug in the
inspect
module, which causes missing source lines for certain decorated functions.E.g.
prints
and misses the return statement expected by
flytekit
since 1.13.1 and introduced in flyteorg/flytekit#2551. This breaks registration as aFlyteMissingReturnValueException
is raised.Expected behavior
As
flytekit
still supports python3.9
, I would expect registration to work with such wrapped functions.Potentially we could have a feature gate to only run it for python >=3.11
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: