Skip to content

Commit 30b1d9e

Browse files
author
Christopher Doris
committed
docstrings for types go missing the previous way
1 parent 460b097 commit 30b1d9e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/PythonCall.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ include("Compat/Compat.jl")
1717
for m in [:Core, :Convert, :PyMacro, :Wrap, :JlWrap, :Compat]
1818
for k in names(@eval($m))
1919
if k != m
20-
@eval const $k = $m.$k
20+
@eval using .$m: $k
2121
@eval export $k
2222
end
2323
end
2424
end
2525

2626
# non-exported API
2727
for k in [:python_executable_path, :python_library_path, :python_library_handle, :python_version]
28-
@eval const $k = C.$k
28+
@eval using .C: $k
2929
end
3030
for k in [:pynew, :pyisnull, :pycopy!, :getptr, :pydel!, :unsafe_pynext, :PyNULL, :CONFIG]
31-
@eval const $k = Core.$k
31+
@eval using .Core: $k
3232
end
3333
for k in [:pyconvert_add_rule, :pyconvert_return, :pyconvert_unconverted, :PYCONVERT_PRIORITY_WRAP, :PYCONVERT_PRIORITY_ARRAY, :PYCONVERT_PRIORITY_CANONICAL, :PYCONVERT_PRIORITY_NORMAL, :PYCONVERT_PRIORITY_FALLBACK]
34-
@eval const $k = Convert.$k
34+
@eval using .Convert: $k
3535
end
3636
for k in [:event_loop_on, :event_loop_off, :fix_qt_plugin_path]
37-
@eval const $k = Compat.$k
37+
@eval using .Compat: $k
3838
end
3939

4040
# not API but used in tests
4141
for k in [:pyjlanytype, :pyjlarraytype, :pyjlvectortype, :pyjlbinaryiotype, :pyjltextiotype, :pyjldicttype, :pyjlmoduletype, :pyjlintegertype, :pyjlrationaltype, :pyjlrealtype, :pyjlcomplextype, :pyjlsettype, :pyjltypetype]
42-
@eval const $k = JlWrap.$k
42+
@eval using .JlWrap: $k
4343
end
4444

4545
end

0 commit comments

Comments
 (0)