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
307
307
308
308
pyconvert_fix (:: Type{T} , func) where {T} = x -> func (T, x)
309
309
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}}} ())
311
311
312
312
function 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
+ )
317
318
end
318
319
319
320
function pyconvert_rule_fast (:: Type{T} , x:: Py ) where {T}
You can’t perform that action at this time.
0 commit comments