Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force flat container input #1523

Closed
trevorbaca opened this issue Feb 27, 2023 · 0 comments · Fixed by #1524
Closed

Force flat container input #1523

trevorbaca opened this issue Feb 27, 2023 · 0 comments · Fixed by #1524
Assignees
Labels
Milestone

Comments

@trevorbaca
Copy link
Member

OLD. Nested lists of components were allowed as container input through Abjad 3.16:

abjad.Staff(
    [abjad.Note("c'4"), [abjad.Note("d'4")]]
)

NEW. Starting in Abjad 3.17, container input must be a flat list of components:

abjad.Staff(
    [abjad.Note("c'4"), abjad.Note("d'4")]
)
@trevorbaca trevorbaca added this to the 3.17 milestone Feb 27, 2023
@trevorbaca trevorbaca self-assigned this Feb 27, 2023
trevorbaca added a commit that referenced this issue Feb 27, 2023
Closes #1523.

OLD. Nested lists of components were allowed as container input through Abjad 3.16:

    abjad.Staff(
        [abjad.Note("c'4"), [abjad.Note("d'4")]]
    )

NEW. Starting in Abjad 3.17, container input must be a flat list of components:

    abjad.Staff(
        [abjad.Note("c'4"), abjad.Note("d'4")]
    )
trevorbaca added a commit that referenced this issue Feb 27, 2023
Closes #1523.

OLD. Nested lists of components were allowed as container input through Abjad 3.16:

    abjad.Staff(
        [abjad.Note("c'4"), [abjad.Note("d'4")]]
    )

NEW. Starting in Abjad 3.17, container input must be a flat list of components:

    abjad.Staff(
        [abjad.Note("c'4"), abjad.Note("d'4")]
    )
trevorbaca added a commit that referenced this issue Feb 27, 2023
* Forced flat container input.

Closes #1523.

OLD. Nested lists of components were allowed as container input through Abjad 3.16:

    abjad.Staff(
        [abjad.Note("c'4"), [abjad.Note("d'4")]]
    )

NEW. Starting in Abjad 3.17, container input must be a flat list of components:

    abjad.Staff(
        [abjad.Note("c'4"), abjad.Note("d'4")]
    )

* Cleaned up typehint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant