File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,11 @@ pyconvert_tryconvert(::Type{T}, x) where {T} =
82
82
pyconvert_unconverted ()
83
83
end
84
84
85
+ function pyconvert_typename (t:: Py )
86
+ m = pygetattr (t, " __module__" , " <unknown>" )
87
+ n = pygetattr (t, " __name__" , " <name>" )
88
+ return " $m /$n "
89
+ end
85
90
86
91
function pyconvert_get_rules (type:: Type , pytype:: Py )
87
92
@nospecialize type
@@ -142,7 +147,7 @@ function pyconvert_get_rules(type::Type, pytype::Py)
142
147
@assert all (pyis (x,y) for (x,y) in zip (omro, omro_))
143
148
144
149
# get the names of the types in the MRO of pytype
145
- xmro = [[ " $(t . __module__) / $(t . __qualname__) " ] for t in mro]
150
+ xmro = [String[ pyconvert_typename (t) ] for t in mro]
146
151
147
152
# add special names corresponding to certain interfaces
148
153
# these get inserted just above the topmost type satisfying the interface
You can’t perform that action at this time.
0 commit comments