Skip to content

Commit

Permalink
Fix literal typing
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Mar 5, 2024
1 parent 1dd5cdc commit 4e485b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion av/audio/stream.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Literal

from av.packet import Packet
from av.stream import Stream

Expand All @@ -6,7 +8,7 @@ from .frame import AudioFrame

class AudioStream(Stream):
format: AudioFormat
type = "audio"
type: Literal["audio"]

def encode(self, frame: AudioFrame | None = None) -> list[Packet]: ...
def decode(self, packet: Packet | None = None) -> list[AudioFrame]: ...

0 comments on commit 4e485b3

Please sign in to comment.