Skip to content

Commit

Permalink
Fix 0.6 abstract type declaration depwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Feb 11, 2017
1 parent 58d30ed commit 1e74624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.4
Compat 0.9.5
Compat 0.17.0
Conda 0.2
MacroTools 0.2
2 changes: 1 addition & 1 deletion src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pyptr_query(po::PyObject) = pyisinstance(po, c_void_p_Type) || pyisinstance(po,
# I want to use a union, but this seems to confuse Julia's method
# dispatch for the convert function in some circumstances
# typealias PyAny Union{PyObject, Int, Bool, Float64, Complex128, AbstractString, Function, Dict, Tuple, Array}
abstract PyAny
@compat abstract type PyAny end

function pyany_toany(T::Type)
T === Vararg{PyAny} ? Vararg{Any} : T
Expand Down

0 comments on commit 1e74624

Please sign in to comment.