Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Dec 13, 2024
1 parent 8a14793 commit a0742e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
def __getattr__(name: str) -> Any:
"""This function defines module-level lazy imports.
The scorer module is particularly heavy, so we defer to speed up weave import."""
The scorer module is particularly heavy, so we defer to speed up weave import.
This allows `Scorer` to stay at top-level without incurring import overhead."""
if name == "Scorer":
from weave.flow.scorer import Scorer

Expand Down
2 changes: 2 additions & 0 deletions weave/flow/scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
DeprecationWarning,
stacklevel=2,
)

__docspec__ = [Scorer]

0 comments on commit a0742e8

Please sign in to comment.