Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/sets/real_set.py (RealSet_base): New, not UniqueRepresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 5, 2022
1 parent 6998c22 commit cf5d8f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sage/sets/real_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class RealSet.
from sage.structure.richcmp import richcmp, richcmp_method
from sage.structure.parent import Parent
from sage.structure.unique_representation import UniqueRepresentation
from sage.misc.classcall_metaclass import ClasscallMetaclass
from sage.categories.topological_spaces import TopologicalSpaces
from sage.categories.sets_cat import EmptySetError
from sage.sets.set import Set_base, Set_boolean_operators, Set_add_sub_operators
Expand Down Expand Up @@ -920,8 +921,9 @@ def _scan_upper(self):


@richcmp_method
class RealSet(UniqueRepresentation, Parent, Set_base,
Set_boolean_operators, Set_add_sub_operators):
class RealSet_base(Parent, Set_base,
Set_boolean_operators, Set_add_sub_operators,
metaclass=ClasscallMetaclass):
r"""
A subset of the real line, a finite union of intervals
Expand Down Expand Up @@ -2831,3 +2833,7 @@ def _sympy_(self):
else:
return Union(*[interval._sympy_()
for interval in self._intervals])


class RealSet(UniqueRepresentation, RealSet_base):
pass

0 comments on commit cf5d8f1

Please sign in to comment.