Skip to content

Commit fd268da

Browse files
committed
refactor(reward,dataset): add __all__ for public API exports
- areal/reward/__init__.py: Add __all__ for VALID_REWARD_FN, get_custom_reward_fn, MathVerifyWorker, get_math_verify_worker - areal/dataset/__init__.py: Add __all__ for VALID_DATASETS get_custom_dataset
1 parent 2ac82a2 commit fd268da

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

areal/dataset/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,9 @@ def get_custom_dataset(
151151
processor=processor,
152152
**kwargs,
153153
)
154+
155+
156+
__all__ = [
157+
"VALID_DATASETS",
158+
"get_custom_dataset",
159+
]

areal/reward/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,11 @@ def get_math_verify_worker() -> MathVerifyWorker:
7575
if _MATH_VERIFY_WORKER is None:
7676
_MATH_VERIFY_WORKER = MathVerifyWorker()
7777
return _MATH_VERIFY_WORKER
78+
79+
80+
__all__ = [
81+
"VALID_REWARD_FN",
82+
"get_custom_reward_fn",
83+
"MathVerifyWorker",
84+
"get_math_verify_worker",
85+
]

0 commit comments

Comments
 (0)