Skip to content

Commit 6cfa5cf

Browse files
fix doc build on main (huggingface#1437)
1 parent a2aa0f0 commit 6cfa5cf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

trl/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,10 @@
124124
else:
125125
import sys
126126

127-
sys.modules[__name__] = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
127+
sys.modules[__name__] = _LazyModule(
128+
__name__,
129+
globals()["__file__"],
130+
_import_structure,
131+
module_spec=__spec__,
132+
extra_objects={"__version__": __version__},
133+
)

0 commit comments

Comments
 (0)