diff options
Diffstat (limited to 'src/pyrecwrap.jl')
-rw-r--r-- | src/pyrecwrap.jl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pyrecwrap.jl b/src/pyrecwrap.jl index 7b31e56..9cfc5e4 100644 --- a/src/pyrecwrap.jl +++ b/src/pyrecwrap.jl @@ -30,7 +30,8 @@ function pyrecwrap(o::PyObject, mname::Symbol=:__anon__) _pyrecwrap_cache[o] = m consts = Expr[] for (ms, mo) in members # ms is Symbol, mo is PyObject) - if pyisinstance(mo, PyCall.@pyglobalobj :PyModule_Type) + if pyisinstance(mo, PyCall.@pyglobalobj :PyModule_Type) || + pyisinstance(mo, PyCall.@pyglobalobj :PyType_Type) if mo == PyCall.inspect continue end |