Skip to content

Commit

Permalink
CHANGED. Removed "hide" from __eq__() calculations:
Browse files Browse the repository at this point in the history
    * abjad.Clef
    * abjad.Dyanmic
    * abjad.MetronomeMark
    * abjad.MetricModulation
    * abjad.TimeSignature

Tag #1531.
  • Loading branch information
trevorbaca committed Apr 13, 2023
1 parent fdc4407 commit 63ce97a
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 62 deletions.
2 changes: 1 addition & 1 deletion abjad/bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def attach(
raise Exception("tag must exist when deactivate is true.")

if hasattr(nonbundle_attachable, "_before_attach"):
nonbundle_attachable._before_attach(target)
nonbundle_attachable._before_attach(deactivate, target)

if hasattr(nonbundle_attachable, "_attachment_test_all") and not do_not_test:
result = nonbundle_attachable._attachment_test_all(target)
Expand Down
4 changes: 2 additions & 2 deletions abjad/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ class Dynamic:
name: typing.Union[str, "Dynamic"] = "f"
command: str | None = None
format_hairpin_stop: bool = False
hide: bool = False
leak: bool = dataclasses.field(default=False, compare=False)
hide: bool = dataclasses.field(compare=False, default=False)
leak: bool = dataclasses.field(compare=False, default=False)
name_is_textual: bool = False
ordinal: int | _math.Infinity | _math.NegativeInfinity | None = None

Expand Down
10 changes: 5 additions & 5 deletions abjad/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ def effective(
Arbitrary objects (like strings) can be contexted:
>>> staff = abjad.Staff("c'8 d'8 e'8 f'8")
>>> abjad.attach('color', staff[1], context='Staff')
>>> abjad.attach("color", staff[1], context="Staff")
>>> abjad.show(staff) # doctest: +SKIP
.. docs::
Expand Down Expand Up @@ -1093,9 +1093,9 @@ def effective(
Scans forwards or backwards when ``n`` is set:
>>> staff = abjad.Staff("c'8 d'8 e'8 f'8 g'8")
>>> abjad.attach('red', staff[0], context='Staff')
>>> abjad.attach('blue', staff[2], context='Staff')
>>> abjad.attach('yellow', staff[4], context='Staff')
>>> abjad.attach("red", staff[0], context="Staff")
>>> abjad.attach("blue", staff[2], context="Staff")
>>> abjad.attach("yellow", staff[4], context="Staff")
>>> abjad.show(staff) # doctest: +SKIP
.. docs::
Expand Down Expand Up @@ -1161,7 +1161,7 @@ def effective(
... abjad.Clef("treble", hide=True),
... staff[0],
... synthetic_offset=abjad.Offset(-1),
... )
... )
>>> abjad.attach(abjad.Clef("alto"), staff[0])
>>> abjad.show(staff) # doctest: +SKIP
Expand Down
Loading

0 comments on commit 63ce97a

Please sign in to comment.