File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -307,13 +307,14 @@ end
307307
308308pyconvert_fix (:: Type{T} , func) where {T} = x -> func (T, x)
309309
310- const PYCONVERT_RULES_CACHE = Lockable (Dict {Type ,Dict{C.PyPtr,Vector{Function}}} ())
310+ const PYCONVERT_RULES_CACHE = Lockable (IdDict {Any ,Dict{C.PyPtr,Vector{Function}}} ())
311311
312312function pyconvert_rules_cache (:: Type{T} ) where {T}
313- Base. @lock PYCONVERT_RULES_CACHE _pyconvert_rules_cache! (T)
314- end
315- @generated function _pyconvert_rules_cache! (:: Type{T} ) where {T}
316- get! (Dict{C. PyPtr,Vector{Function}}, PYCONVERT_RULES_CACHE[], T)
313+ Base. @lock PYCONVERT_RULES_CACHE get! (
314+ Dict{C. PyPtr,Vector{Function}},
315+ PYCONVERT_RULES_CACHE[],
316+ T,
317+ )
317318end
318319
319320function pyconvert_rule_fast (:: Type{T} , x:: Py ) where {T}
You can’t perform that action at this time.
0 commit comments