Skip to content

Commit 57666fa

Browse files
committed
add comment on in-function import
1 parent 00be401 commit 57666fa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

openml/flows/flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ def publish(self):
341341
self : OpenMLFlow
342342
343343
"""
344+
# Import at top not possible because of cyclic dependencies. In
345+
# particular, flow.py tries to import functions.py in order to call
346+
# get_flow(), while functions.py tries to import flow.py in order to
347+
# instantiate an OpenMLFlow.
344348
import openml.flows.functions
345349

346350
xml_description = self._to_xml()

0 commit comments

Comments
 (0)