More linting with ruff (suppress unused imports).

This commit is contained in:
Frédéric Tronel
2026-08-30 14:45:25 +02:00
parent 63d2deafb1
commit 0345293664
2 changed files with 1 additions and 40 deletions
-1
View File
@@ -7,7 +7,6 @@ from dataclasses import dataclass, field
from math import ceil, floor, log
import hexdump
from typeguard import typechecked
from tscut.h264.bitstream import (
more_rbsp_data,
+1 -39
View File
@@ -12,52 +12,14 @@ from os import (
write,
)
from sys import exit
from typing import IO, BinaryIO, TextIO, Sequence
from typing import IO, BinaryIO, Sequence, TextIO
# Third party libraries
from tqdm import tqdm
from typeguard import typechecked
from tscut.tools.mkvtoolnix import change_codec_private_data
from tscut.h264.avc import (
get_avc_config_from_h264,
parse_codec_private
)
from tscut.matroska.ebml import change_ebml_element_size
from tscut.matroska.codec import dump_codec_private_data
from tscut.tools.ffprobe import (
get_format,
get_frame_rate,
get_video_dimensions,
get_movie_duration,
get_streams,
with_subtitles,
find_subtitles_tracks,
get_nearest_iframe,
get_ts_frame
)
from tscut.tools.ffmpeg import (
extract_all_streams,
ffmpeg_convert
)
from tscut.tools.timeframe import (
compare_time_interval,
parse_time_interval
)
from tscut.tools.discovery import check_required_tools
from tscut.subtitles.ocr import (
do_ocr,
extract_srt,
get_tesseract_supported_lang
)
from tscut.tools.mkvtoolnix import (
extract_mkv_part,
extract_track_from_mkv,
get_codec_private_data_from_mkv,
merge_mkvs,
remove_video_tracks_from_mkv,
remux_srt_subtitles
)
# Useful SPS/PPS discussion.