Skip to content

Commit

Permalink
src/sage/rings/function_field/function_field.py: Fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 25, 2024
1 parent 54ef965 commit 53863a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/rings/function_field/function_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def _intermediate_fields(self, base):
...
TypeError: base must be a function field
"""
if not is_FunctionField(base):
if base not in FunctionFields():
raise TypeError("base must be a function field")

ret = [self]
Expand Down

0 comments on commit 53863a1

Please sign in to comment.