acoustic-carpenter-78188
09/02/2025, 6:20 PMoverride 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-sdkacoustic-carpenter-78188
09/02/2025, 7:05 PM