<#140 Create a new LazyEntity when overriding> Pul...
# flyte-github
a
#140 Create a new LazyEntity when overriding Pull request opened by pingsutw This pull request updates the behavior of the
override
method in the
LazyEntity
class, ensuring that calling
override
now returns a new instance of
LazyEntity
instead of modifying and returning the same instance. Corresponding tests have been updated to reflect this change in behavior. Core logic update: • Changed the
override
method in
src/flyte/remote/_task.py
to return a new
LazyEntity
instance with updated task details, rather than mutating and returning the existing instance. Test updates: • Modified
test_override_method
and
test_override_sync_wrapper
in
tests/flyte/remote/test_task.py
to assert that
override
returns a new instance and that the name remains unchanged. [1] [2] flyteorg/flyte-sdk