Skip to content

Commit 9966bb2

Browse files
yuyichaostevengj
authored andcommitted
Fix ambiguity error on 0.6 (#366)
1 parent 1feb90e commit 9966bb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PyCall.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ unsafe_convert(::Type{PyPtr}, po::PyObject) = po.o
147147

148148
# use constructor for generic conversions to PyObject
149149
convert(::Type{PyObject}, o) = PyObject(o)
150+
convert(::Type{PyObject}, o::PyObject) = o
150151
PyObject(o::PyObject) = o
151152

152153
#########################################################################

0 commit comments

Comments
 (0)