webvtt-py breaking changes
webvtt-py 0.8.0 (November 8, 2026) is its newest release with breaking changes, 31 of them. The first: Removed webvtt.__author__. Every breaking API change we have recorded in webvtt-py on PyPI: 31 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.8.0, released November 8, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
webvtt-py 0.8.0 breaking changes
- Removed
webvtt.__author__
The author is now in the package metadata, so code that reads webvtt.__author__ must read the metadata instead. github.com - Removed
webvtt.__author_email__
The author email is now in the package metadata, so code that reads webvtt.__author_email__ must read the metadata instead. github.com - Removed
webvtt.vtt.WebVTTStyleBlock.STYLE_PATTERN
webvtt.vtt.WebVTTStyleBlock.STYLE_PATTERN was removed in webvtt-py 0.8.0 pypi.org - Behavior changed
The commands of the CLI read files with those extensions as SRT and SBV, so a WebVTT file with one of them needs the --format vtt option. github.com - Behavior changed
from_sbv
It keeps the Byte Order Mark as read does, so save also keeps it for SBV files read with one. github.com - Behavior changed
from_srt
It keeps the Byte Order Mark as read does, so save also keeps it for SRT files read with one. github.com - Behavior changed
save_as_srt
It keeps the Byte Order Mark of the file that was read and saves in its encoding, as save does, instead of UTF-8 without it. Pass add_bom=False to save without it. github.com - Behavior changed
Style
Styles with the same content are equal, and they can no longer be used in sets or as dictionary keys. Compare them with is to tell whether they are the same object. github.com - Behavior changed
sync
It raises ValueError for a Timestamp before zero and TypeError for one with fields that are not integers, instead of writing timestamps that cannot be written. github.com - Behavior changed
total_length
It returns milliseconds from the earliest start to the latest end of the captions, not whole seconds from the first caption to the last. Round it or convert it to int where whole seconds are needed. github.com - Behavior changed
WebVTT
Files with the same content are equal, and WebVTT objects can no longer be used in sets or as dictionary keys. Compare them with is to tell whether they are the same object. github.com - Signature changed
webvtt.Caption.__init__
Was def __init__(self, start: typing.Optional[str] = None, end: typing.Optional[str] = None, text: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, identifier: typing.Optional[str] = None, settings... pypi.org - Signature changed
webvtt.cli.main
Was def main(argv: typing.Optional[typing.Sequence] = None); now def main(argv: Sequence[str] | None = None) -> None. pypi.org - Signature changed
webvtt.sbv.parse
Was def parse(lines: typing.Sequence[str]) -> typing.List[Caption]; now def parse(lines: Sequence[str], issues: list[ParseIssue] | None = None) -> list[Caption]. pypi.org - Signature changed
webvtt.segmenter.segment
Was def segment(webvtt_path: typing.Union[str, WebVTT], output: str, seconds: int = DEFAULT_SECONDS, mpegts: int = DEFAULT_MPEGTS, *, overwrite: bool = False, duration: typing.Optional[_Position] = None); now def segment(webvtt_path... pypi.org - Signature changed
webvtt.srt.parse
Was def parse(lines: typing.Sequence[str]) -> typing.List[Caption]; now def parse(lines: Sequence[str], issues: list[ParseIssue] | None = None, styles: list[Style] | None = None) -> list[Caption]. pypi.org - Signature changed
webvtt.srt.parse_captions
Was def parse_captions(lines: typing.Sequence[str]) -> typing.List[Caption]; now def parse_captions(lines: Sequence[str], issues: list[ParseIssue] | None = None, styles: list[Style] | None = None) -> list[Caption]. pypi.org - Signature changed
webvtt.utils.FileWrapper.__exit__
Was def __exit__(self, exc_type, exc_val, exc_tb); now def __exit__(self, *exc_info: object) -> None. pypi.org - Signature changed
webvtt.utils.FileWrapper.__init__
Was def __init__(self, file_path: str, mode: typing.Optional[str] = None, encoding: typing.Optional[str] = None); now def __init__(self, file_path: _Path, mode: str | None = None, encoding: str | None = None, errors: str | None = None). pypi.org - Signature changed
webvtt.utils.FileWrapper.detect_bom_encoding
Was @staticmethod def detect_bom_encoding(file_path: str) -> typing.Optional[str]; now @staticmethod def detect_bom_encoding(file_path: _Path) -> str | None. pypi.org - Signature changed
webvtt.utils.FileWrapper.open
Was @classmethod def open(cls, file_path: str, mode: typing.Optional[str] = None, encoding: typing.Optional[str] = None) -> FileWrapper; now @classmethod def open(cls, file_path: _Path, mode: str | None = None, encoding: str | None = None... pypi.org - Signature changed
webvtt.vtt.ParserOutput.__init__
Was def __init__(self, styles: typing.List[Style], captions: typing.List[Caption], header_comments: typing.List[str], footer_comments: typing.List[str], header_text: str = '', metadata: typing.List[str] = list(), regions... pypi.org - Signature changed
webvtt.WebVTT.from_buffer
Was @classmethod def from_buffer(cls, buffer: typing.Union[typing.Iterable[str], typing.BinaryIO], format: str = 'vtt', strict: bool = False, encoding: typing.Optional[str] = None) -> WebVTT; now @classmethod def from_buffer(cls, buffer... pypi.org - Signature changed
webvtt.WebVTT.from_sbv
Was @classmethod def from_sbv(cls, file: str, encoding: typing.Optional[str] = None) -> WebVTT; now @classmethod def from_sbv(cls, file: utils._Path, encoding: str | None = None, errors: str | None = 'strict') -> WebVTT. pypi.org - Signature changed
webvtt.WebVTT.from_srt
Was @classmethod def from_srt(cls, file: str, encoding: typing.Optional[str] = None) -> WebVTT; now @classmethod def from_srt(cls, file: utils._Path, encoding: str | None = None, errors: str | None = 'strict') -> WebVTT. pypi.org - Signature changed
webvtt.WebVTT.from_string
Was @classmethod def from_string(cls, string: str, strict: bool = False) -> WebVTT; now @classmethod def from_string(cls, string: str, strict: bool = False, format: str = 'vtt') -> WebVTT. pypi.org - Signature changed
webvtt.WebVTT.iter_slice
Was def iter_slice(self, start: typing.Optional[str] = None, end: typing.Optional[str] = None) -> typing.Generator[Caption, None, None]; now def iter_slice(self, start: _Position | None = None, end: _Position | None = None, *, overlapping... pypi.org - Signature changed
webvtt.WebVTT.read
Was @classmethod def read(cls, file: str, encoding: typing.Optional[str] = None, strict: bool = False) -> WebVTT; now @classmethod def read(cls, file: utils._Path, encoding: str | None = None, strict: bool = False, errors: str | None =... pypi.org - Signature changed
webvtt.WebVTT.save
Was def save(self, output: typing.Optional[str] = None, encoding: typing.Optional[str] = None, add_bom: typing.Optional[bool] = None); now def save(self, output: utils._Path | None = None, encoding: str | None = None, add_bom: bool | None... pypi.org - Signature changed
webvtt.WebVTT.save_as_srt
Was def save_as_srt(self, output: typing.Optional[str] = None, encoding: typing.Optional[str] = None, keep_formatting: bool = False); now def save_as_srt(self, output: utils._Path | None = None, encoding: str | None = None... pypi.org - Signature changed
webvtt.WebVTT.shift
Was def shift(self, offset: typing.Union[float, datetime.timedelta], start: typing.Optional[str] = None); now def shift(self, offset: float | datetime.timedelta, start: _Position | None = None, *, drop_before_zero: bool = False) -> None. pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.