Skip to content

Commit 86c568d

Browse files
committed
move and document type_repr
1 parent 036c9c8 commit 86c568d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/groups.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ type_repr(::Type{D₄}) = "D₄"
8383
type_repr(::Type{SU₂}) = "SU₂"
8484
type_repr(::Type{U₁}) = "U₁"
8585
type_repr(::Type{CU₁}) = "CU₁"
86-
type_repr(T::Type) = repr(T)
8786

8887
const GroupTuple = Tuple{Vararg{Group}}
8988

src/sectors.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ implementation of `Base.iterate(::SectorProductIterator{I}, state...)`.
3838
"""
3939
abstract type Sector end
4040

41+
"""
42+
type_repr(T::Type)
43+
44+
Return a string representation of the type `T`, which is used to modify the default
45+
way in which `Sector` subtypes are displayed in other objects that depend on them.
46+
"""
47+
type_repr(T::Type) = repr(T)
48+
4149
# iterator over the values (i.e., elements of representative set of simple objects)
4250
# in the sector
4351
"""

0 commit comments

Comments
 (0)