@@ -147,30 +147,30 @@ end
147147function pyconvert_rule_range (
148148 :: Type{R} ,
149149 x:: Py ,
150- :: Type{StepRange{T0,S0}} = Utils. _type_lb (R),
151- :: Type{StepRange{T1,S1}} = Utils. _type_ub (R),
150+ :: Type{StepRange{T0,S0}} = Utils. type_lb (R),
151+ :: Type{StepRange{T1,S1}} = Utils. type_ub (R),
152152) where {R<: StepRange ,T0,S0,T1,S1}
153- a = @pyconvert (Utils. _typeintersect (Integer, T1), x. start)
154- b = @pyconvert (Utils. _typeintersect (Integer, S1), x. step)
155- c = @pyconvert (Utils. _typeintersect (Integer, T1), x. stop)
153+ a = @pyconvert (Utils. typeintersect (Integer, T1), x. start)
154+ b = @pyconvert (Utils. typeintersect (Integer, S1), x. step)
155+ c = @pyconvert (Utils. typeintersect (Integer, T1), x. stop)
156156 a′, c′ = promote (a, c - oftype (c, sign (b)))
157- T2 = Utils. _promote_type_bounded (T0, typeof (a′), typeof (c′), T1)
158- S2 = Utils. _promote_type_bounded (S0, typeof (c′), S1)
157+ T2 = Utils. promote_type_bounded (T0, typeof (a′), typeof (c′), T1)
158+ S2 = Utils. promote_type_bounded (S0, typeof (c′), S1)
159159 pyconvert_return (StepRange {T2,S2} (a′, b, c′))
160160end
161161
162162function pyconvert_rule_range (
163163 :: Type{R} ,
164164 x:: Py ,
165- :: Type{UnitRange{T0}} = Utils. _type_lb (R),
166- :: Type{UnitRange{T1}} = Utils. _type_ub (R),
165+ :: Type{UnitRange{T0}} = Utils. type_lb (R),
166+ :: Type{UnitRange{T1}} = Utils. type_ub (R),
167167) where {R<: UnitRange ,T0,T1}
168168 b = @pyconvert (Int, x. step)
169169 b == 1 || return pyconvert_unconverted ()
170- a = @pyconvert (Utils. _typeintersect (Integer, T1), x. start)
171- c = @pyconvert (Utils. _typeintersect (Integer, T1), x. stop)
170+ a = @pyconvert (Utils. typeintersect (Integer, T1), x. start)
171+ c = @pyconvert (Utils. typeintersect (Integer, T1), x. stop)
172172 a′, c′ = promote (a, c - oftype (c, 1 ))
173- T2 = Utils. _promote_type_bounded (T0, typeof (a′), typeof (c′), T1)
173+ T2 = Utils. promote_type_bounded (T0, typeof (a′), typeof (c′), T1)
174174 pyconvert_return (UnitRange {T2} (a′, c′))
175175end
176176
@@ -180,13 +180,13 @@ end
180180function pyconvert_rule_fraction (
181181 :: Type{R} ,
182182 x:: Py ,
183- :: Type{Rational{T0}} = Utils. _type_lb (R),
184- :: Type{Rational{T1}} = Utils. _type_ub (R),
183+ :: Type{Rational{T0}} = Utils. type_lb (R),
184+ :: Type{Rational{T1}} = Utils. type_ub (R),
185185) where {R<: Rational ,T0,T1}
186- a = @pyconvert (Utils. _typeintersect (Integer, T1), x. numerator)
187- b = @pyconvert (Utils. _typeintersect (Integer, T1), x. denominator)
186+ a = @pyconvert (Utils. typeintersect (Integer, T1), x. numerator)
187+ b = @pyconvert (Utils. typeintersect (Integer, T1), x. denominator)
188188 a, b = promote (a, b)
189- T2 = Utils. _promote_type_bounded (T0, typeof (a), typeof (b), T1)
189+ T2 = Utils. promote_type_bounded (T0, typeof (a), typeof (b), T1)
190190 pyconvert_return (Rational {T2} (a, b))
191191end
192192
@@ -211,7 +211,7 @@ function _pyconvert_rule_iterable(ans::Vector{T0}, it::Py, ::Type{T1}) where {T0
211211 push! (ans, x)
212212 @goto again
213213 end
214- T2 = Utils. _promote_type_bounded (T0, typeof (x), T1)
214+ T2 = Utils. promote_type_bounded (T0, typeof (x), T1)
215215 ans2 = Vector {T2} (ans)
216216 push! (ans2, x)
217217 return _pyconvert_rule_iterable (ans2, it, T1)
220220function pyconvert_rule_iterable (
221221 :: Type{R} ,
222222 x:: Py ,
223- :: Type{Vector{T0}} = Utils. _type_lb (R),
224- :: Type{Vector{T1}} = Utils. _type_ub (R),
223+ :: Type{Vector{T0}} = Utils. type_lb (R),
224+ :: Type{Vector{T1}} = Utils. type_ub (R),
225225) where {R<: Vector ,T0,T1}
226226 it = pyiter (x)
227227 ans = Vector {T0} ()
@@ -242,7 +242,7 @@ function _pyconvert_rule_iterable(ans::Set{T0}, it::Py, ::Type{T1}) where {T0,T1
242242 push! (ans, x)
243243 @goto again
244244 end
245- T2 = Utils. _promote_type_bounded (T0, typeof (x), T1)
245+ T2 = Utils. promote_type_bounded (T0, typeof (x), T1)
246246 ans2 = Set {T2} (ans)
247247 push! (ans2, x)
248248 return _pyconvert_rule_iterable (ans2, it, T1)
251251function pyconvert_rule_iterable (
252252 :: Type{R} ,
253253 x:: Py ,
254- :: Type{Set{T0}} = Utils. _type_lb (R),
255- :: Type{Set{T1}} = Utils. _type_ub (R),
254+ :: Type{Set{T0}} = Utils. type_lb (R),
255+ :: Type{Set{T1}} = Utils. type_ub (R),
256256) where {R<: Set ,T0,T1}
257257 it = pyiter (x)
258258 ans = Set {T0} ()
@@ -281,8 +281,8 @@ function _pyconvert_rule_mapping(
281281 push! (ans, k => v)
282282 @goto again
283283 end
284- K2 = Utils. _promote_type_bounded (K0, typeof (k), K1)
285- V2 = Utils. _promote_type_bounded (V0, typeof (v), V1)
284+ K2 = Utils. promote_type_bounded (K0, typeof (k), K1)
285+ V2 = Utils. promote_type_bounded (V0, typeof (v), V1)
286286 ans2 = Dict {K2,V2} (ans)
287287 push! (ans2, k => v)
288288 return _pyconvert_rule_mapping (ans2, x, it, K1, V1)
291291function pyconvert_rule_mapping (
292292 :: Type{R} ,
293293 x:: Py ,
294- :: Type{Dict{K0,V0}} = Utils. _type_lb (R),
295- :: Type{Dict{K1,V1}} = Utils. _type_ub (R),
294+ :: Type{Dict{K0,V0}} = Utils. type_lb (R),
295+ :: Type{Dict{K1,V1}} = Utils. type_ub (R),
296296) where {R<: Dict ,K0,V0,K1,V1}
297297 it = pyiter (x)
298298 ans = Dict {K0,V0} ()
372372function pyconvert_rule_iterable (
373373 :: Type{R} ,
374374 x:: Py ,
375- :: Type{Pair{K0,V0}} = Utils. _type_lb (R),
376- :: Type{Pair{K1,V1}} = Utils. _type_ub (R),
375+ :: Type{Pair{K0,V0}} = Utils. type_lb (R),
376+ :: Type{Pair{K1,V1}} = Utils. type_ub (R),
377377) where {R<: Pair ,K0,V0,K1,V1}
378378 it = pyiter (x)
379379 k_ = unsafe_pynext (it)
@@ -398,8 +398,8 @@ function pyconvert_rule_iterable(
398398 pydel! (z_)
399399 return pyconvert_unconverted ()
400400 end
401- K2 = Utils. _promote_type_bounded (K0, typeof (k), K1)
402- V2 = Utils. _promote_type_bounded (V0, typeof (v), V1)
401+ K2 = Utils. promote_type_bounded (K0, typeof (k), K1)
402+ V2 = Utils. promote_type_bounded (V0, typeof (v), V1)
403403 return pyconvert_return (Pair {K2,V2} (k, v))
404404end
405405
0 commit comments