Skip to content

Commit f127109

Browse files
committed
Simplify real
1 parent 410ccb9 commit f127109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstract.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ is_(fn, p::AbstractPolynomial) = all(fn, coeffs(p))
2222
as_(fn, p::P) where {P<:AbstractPolynomial} = (P)(fn.(coeffs(p)), p.var)
2323

2424
Base.isreal(p::AbstractPolynomial) = is_(isreal, p)
25-
Base.real(p::P) where {P<:AbstractPolynomial} = as_(real, p)
25+
Base.real(p::AbstractPolynomial) = as_(real, p)
2626

2727
"""
2828
Polynomials.@register(name)

0 commit comments

Comments
 (0)