diff --git a/pyproject.toml b/pyproject.toml index 9e716c3..5c37b67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ dependencies = [ packages = [{ include = "voicemeeterlib" }] [tool.poetry.requires-plugins] -poethepoet = "^0.32.1" +poethepoet = "^0.35.0" [tool.poetry.group.dev.dependencies] pytest = "^8.3.4" diff --git a/voicemeeterlib/bus.py b/voicemeeterlib/bus.py index 2cb52b4..fb702c0 100644 --- a/voicemeeterlib/bus.py +++ b/voicemeeterlib/bus.py @@ -96,7 +96,7 @@ class BusEQ(IRemote): Returns a BusEQ class. """ kls = (cls,) - return type( + BusEQ_cls = type( 'BusEQ', kls, { @@ -105,6 +105,7 @@ class BusEQ(IRemote): ) }, ) + return BusEQ_cls(remote, i) @property def identifier(self) -> str: @@ -136,7 +137,7 @@ class BusEQCh(IRemote): Returns a BusEQCh class. """ kls = (cls,) - return type( + BusEQCh_cls = type( 'BusEQCh', kls, { @@ -145,6 +146,7 @@ class BusEQCh(IRemote): ) }, ) + return BusEQCh_cls(remote, i, j) def __init__(self, remote, i, j): super().__init__(remote, i)