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 4, 2024
1 parent b0bd1ba commit 947c478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion av/audio/codeccontext.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Literal

from av.codec.context import CodecContext

from .format import AudioFormat
Expand All @@ -11,4 +13,4 @@ class AudioCodecContext(CodecContext):
channel_layout: int
layout: AudioLayout
format: AudioFormat
type = "audio"
type: Literal["audio"]

0 comments on commit 947c478

Please sign in to comment.