aglinxinyuan opened a new issue, #9543: URL: https://github.com/apache/texera/issues/9543
### Task Summary Remove redundant Python statements, unused imports, unnecessary control-flow branches, and legacy idioms across `amber/src/main/python/` and `amber/src/main/scala/org/apache/texera/web/resource/aiassistant/type_annotation_visitor.py` with no behavior change. ### Scope - Remove redundant `pass` statements in docstring-only abstract methods and marker classes (`internal_marker.py`, `buffered_item_writer.py`, `readonly_virtual_document.py`, `udf_operator.py`). - Remove unused `import core`, unnecessary dict unpacking, and redundant temporary-return variables (`iceberg_utils.py`, `timestamp.py`, `backpressure_handler.py`), plus redundant `else`/`elif` branches after `return` (`attribute_type_utils.py`, `table.py`, `document_factory.py`, `iceberg_catalog_instance.py`). - Simplify container/default constructors, string formatting, `super()`, generator expressions, `datetime.UTC`, `@functools.cache`, and duplicate `staticmethod` decorator checks / unused `enumerate` index (`exception_manager.py`, `async_rpc_client.py`, `one_to_one_partitioner.py`, `attribute_type.py`, `schema.py`, `proxy_client.py`, `proxy_server.py`, `heartbeat.py`, `expression_evaluator.py`, `type_annotation_visitor.py`). ### Task Type - [x] Refactor / Cleanup -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
