Skip to content

Commit b3c393d

Browse files
committed
fix mypy errors
1 parent d34a1a5 commit b3c393d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DPF/filters/videos/videohash_filter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io
22
from typing import Any
33
import shutil
4-
from videohash import VideoHash
4+
from videohash import VideoHash # type: ignore
55
from uuid import uuid4
66
import os
77

@@ -10,7 +10,6 @@
1010
from .video_filter import VideoFilter
1111

1212

13-
1413
class VideohashFilter(VideoFilter):
1514

1615
def __init__(

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ filters = [
3737
'salesforce-lavis',
3838
'py3langid',
3939
'deep_translator',
40-
'huggingface_hub'
40+
'huggingface_hub',
41+
'videohash'
4142
]
4243
nsfw_detector = ['tensorflow', 'autokeras']
4344
llava = [

0 commit comments

Comments
 (0)