madhushreeag commented on code in PR #43337:
URL: https://github.com/apache/superset/pull/43337#discussion_r3815490716
##########
superset/config.py:
##########
@@ -358,6 +358,15 @@ def _try_json_readsha(filepath: str, length: int) -> str |
None:
# Extends the default SQLGlot dialects with additional dialects
SQLGLOT_DIALECTS_EXTENSIONS: DialectExtensions | Callable[[],
DialectExtensions] = {}
+# Extra pandas post-processing operations to register alongside the built-in
ones.
+# Each entry is a callable with the signature:
+# def my_op(df: pandas.DataFrame, **options: Any) -> pandas.DataFrame
+# and will be available under its __name__ as an operation name.
+# Example:
+# from mypackage.ops import my_custom_op
+# EXTRA_PANDAS_POSTPROCESSING_OPS = [my_custom_op]
+EXTRA_PANDAS_POSTPROCESSING_OPS: list[Callable[..., Any]] = []
Review Comment:
The code already handles this (we just added the getattr guard), clarifying
EXTRA_PANDAS_POSTPROCESSING_OPS callable contract
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]