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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶TypeError: argument of type int is not iterable when accessing Insert.dock #44

Closed
demberto opened this issue Sep 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working mixer-insert Insert a.k.a mixer channels
Milestone

Comments

@demberto
Copy link
Owner

PyFLP/pyflp/mixer.py

Lines 472 to 484 in 227f862

def dock(self) -> InsertDock | None:
"""The position (left, middle or right) where insert is docked in mixer.
![](https://bit.ly/3eLum9D)
"""
events = self._events.get(InsertID.Flags)
if events is not None:
event = cast(InsertFlagsEvent, events[0])
if _InsertFlags.DockMiddle in event["flags"]:
return InsertDock.Middle
if _InsertFlags.DockRight in event["flags"]:
return InsertDock.Right
return InsertDock.Left

@demberto demberto added the bug Something isn't working label Sep 17, 2022
@demberto demberto added this to the PyFLP 2.0.0 milestone Sep 17, 2022
@demberto demberto self-assigned this Sep 17, 2022
@demberto demberto changed the title bug: TypeError: argument of type 'int' is not iterable when accessing Insert.dock bug: TypeError: argument of type int is not iterable when accessing Insert.dock Sep 17, 2022
@demberto demberto changed the title bug: TypeError: argument of type int is not iterable when accessing Insert.dock 馃悶TypeError: argument of type int is not iterable when accessing Insert.dock Sep 17, 2022
@demberto demberto added the mixer-insert Insert a.k.a mixer channels label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mixer-insert Insert a.k.a mixer channels
Projects
None yet
Development

No branches or pull requests

1 participant