Skip to content

Commit 1deb9cb

Browse files
1 parent 1f2a970 commit 1deb9cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stubs/JACK-Client/jack/__init__.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _typeshed import Self
22
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
33
from typing import Any, overload
4-
from typing_extensions import TypeAlias
4+
from typing_extensions import Literal, TypeAlias
55

66
_NDArray: TypeAlias = Any # FIXME: no typings for numpy arrays
77

@@ -180,8 +180,10 @@ class Port:
180180
def request_monitor(self, onoff: bool) -> None: ...
181181

182182
class MidiPort(Port):
183-
is_audio: bool = ...
184-
is_midi: bool = ...
183+
@property
184+
def is_audio(self) -> Literal[False]: ...
185+
@property
186+
def is_midi(self) -> Literal[True]: ...
185187

186188
class OwnPort(Port):
187189
@property

0 commit comments

Comments
 (0)