Refactors explainaboard.analysis.bucketing module to improve maintainability.
Details
This module is originally accessed via introspection to get inner functions with unclear function signatures, which breaks typing information and make the maintenance hard. This change introduces:
Give the config type SerializableData (we must be able to serialize this data because this is stored in Analysis)
Add BucketingFn protocol type to give the correct typing information of functions
Overview
Refactors
explainaboard.analysis.bucketing
module to improve maintainability.Details
This module is originally accessed via introspection to get inner functions with unclear function signatures, which breaks typing information and make the maintenance hard. This change introduces:
SerializableData
(we must be able to serialize this data because this is stored inAnalysis
)BucketingFn
protocol type to give the correct typing information of functionsReferences
446
Blocked by