Skip to content

Commit efe1e4c

Browse files
committed
Don't make MotionVectors a subclass of Sequence
It breaked limited api.
1 parent c7c422c commit efe1e4c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

av/sidedata/motionvectors.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from collections.abc import Sequence
2-
31
import cython
42
from cython.cimports import libav as lib
53
from cython.cimports.av.sidedata.sidedata import SideData
@@ -8,7 +6,7 @@
86

97

108
@cython.cclass
11-
class MotionVectors(SideData, Sequence):
9+
class MotionVectors(SideData):
1210
def __init__(self, sentinel, frame: Frame, index: cython.int):
1311
SideData.__init__(self, sentinel, frame, index)
1412
self._vectors = {}

av/sidedata/motionvectors.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import numpy as np
44

55
from .sidedata import SideData
66

7-
class MotionVectors(SideData, Sequence[MotionVector]):
7+
class MotionVectors(SideData):
88
@overload
99
def __getitem__(self, index: int) -> MotionVector: ...
1010
@overload

0 commit comments

Comments
 (0)