Skip to content

Commit

Permalink
detail in is_field
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Rubey <[email protected]>
  • Loading branch information
fchapoton and mantepse authored Dec 11, 2024
1 parent b57db76 commit 2d110bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sage/categories/integral_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ def is_field(self, proof=True):
if self.is_finite():
return True
if proof:
raise NotImplementedError("unable to determine whether or not is a field.")
else:
return False
raise NotImplementedError(f"unable to determine whether or not {self} is a field.")
return False

def localization(self, additional_units, names=None, normalize=True, category=None):
"""
Expand Down

0 comments on commit 2d110bd

Please sign in to comment.