Skip to content

Commit f1facef

Browse files
committed
fix: extract ivy.transpile import from try block in ivy.__init__
1 parent a8114f2 commit f1facef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ivy/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,14 @@ class Node(str):
804804
pass
805805
try:
806806
from .tracer import trace_graph
807-
from .transpiler import (
808-
source_to_source,
809-
transpile,
810-
)
811807
except: # noqa: E722
812808
pass # Added for the finally statement
813809

810+
from .transpiler import (
811+
source_to_source,
812+
transpile,
813+
)
814+
814815
# Skip framework imports done by Ivy compiler for now
815816
for backend_framework in _not_imported_backends.copy():
816817
if backend_framework in sys.modules:

0 commit comments

Comments
 (0)