Skip to content

Commit

Permalink
No args forwarding in Codec.create
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Dec 17, 2024
1 parent a0fc7ec commit 6fa996c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions av/codec/codec.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ cdef class Codec:
def __repr__(self):
return f"<av.{self.__class__.__name__}({self.name!r}, {self.mode!r})>"

def create(self, kind = None, *args, **kwargs):
def create(self, kind = None):
"""Create a :class:`.CodecContext` for this codec.
:param str kind: Gives a hint to static type checkers for what exact CodecContext is used.
"""
from .context import CodecContext
return CodecContext.create(self, *args, **kwargs)
return CodecContext.create(self)

@property
def is_decoder(self):
Expand Down

0 comments on commit 6fa996c

Please sign in to comment.