Skip to content

Commit

Permalink
Add type assertions to make inference on 1.10 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Nov 5, 2023
1 parent cced335 commit 2ce5bc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NumFieldOrd/NfOrd/Clgp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,21 +473,21 @@ All elements will be returned in factored form.
function unit_group_fac_elem(O::NfOrd; method::Int = 3, unit_method::Int = 1, use_aut::Bool = false, GRH::Bool = true, redo::Bool = false)
if !is_maximal(O)
OK = maximal_order(nf(O))
UUU, mUUU = unit_group_fac_elem(OK)
return _unit_group_non_maximal(O, OK, mUUU)
UUU, mUUU = unit_group_fac_elem(OK)::Tuple{GrpAbFinGen, MapUnitGrp{FacElemMon{AnticNumberField}}}
return _unit_group_non_maximal(O, OK, mUUU)::Tuple{GrpAbFinGen, MapUnitGrp{FacElemMon{AnticNumberField}}}
end

U = get_attribute(O, :UnitGrpCtx)
if U !== nothing && U.finished
return unit_group_fac_elem(U::UnitGrpCtx{FacElem{nf_elem, AnticNumberField}})
return unit_group_fac_elem(U::UnitGrpCtx{FacElem{nf_elem, AnticNumberField}})::Tuple{GrpAbFinGen, MapUnitGrp{FacElemMon{AnticNumberField}}}
end
c = get_attribute(O, :ClassGrpCtx)
if c === nothing
O = lll(maximal_order(nf(O)))
end
_, UU, b = _class_unit_group(O, method = method, unit_method = unit_method, use_aut = use_aut, GRH = GRH, redo = redo)
@assert b==1
return unit_group_fac_elem(UU)
return unit_group_fac_elem(UU)::Tuple{GrpAbFinGen, MapUnitGrp{FacElemMon{AnticNumberField}}}
end

@doc raw"""
Expand Down

0 comments on commit 2ce5bc4

Please sign in to comment.