itsdangerous breaking changes
itsdangerous 2.2.0 (April 16, 2024) is its newest release with breaking changes, 100 of them. The first: itsdangerous 2.2.0 drops support for Python 3.7. Every breaking API change we have recorded in itsdangerous on PyPI: 100 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 2.2.0, released April 16, 2024. Source repository
Its 2.2.0 release drops Python 3.7. Python end of life dates.
itsdangerous 2.2.0 breaking changes
- Removed
Python 3.7 is no longer supported. Users on Python 3.7 must upgrade Python before upgrading itsdangerous. github.com - Signature changed
itsdangerous.BadHeader.__init__
Was def __init__(self, message: str, payload: _t_opt_any = None, header: _t_opt_any = None, original_error: _t_opt_exc = None); now def __init__(self, message: str, payload: t.Any | None = None, header: t.Any | None = None, original_error... pypi.org - Signature changed
itsdangerous.BadHeader.header
Was header: _t_opt_any; now header: t.Any | None. pypi.org - Signature changed
itsdangerous.BadHeader.original_error
Was original_error: _t_opt_exc; now original_error: Exception | None. pypi.org - Signature changed
itsdangerous.BadPayload.__init__
Was def __init__(self, message: str, original_error: _t_opt_exc = None); now def __init__(self, message: str, original_error: Exception | None = None). pypi.org - Signature changed
itsdangerous.BadPayload.original_error
Was original_error: _t_opt_exc; now original_error: Exception | None. pypi.org - Signature changed
itsdangerous.BadSignature.__init__
Was def __init__(self, message: str, payload: _t_opt_any = None); now def __init__(self, message: str, payload: t.Any | None = None). pypi.org - Signature changed
itsdangerous.BadSignature.payload
Was payload: _t_opt_any; now payload: t.Any | None. pypi.org - Signature changed
itsdangerous.BadTimeSignature.__init__
Was def __init__(self, message: str, payload: _t_opt_any = None, date_signed: _t.Optional[datetime] = None); now def __init__(self, message: str, payload: t.Any | None = None, date_signed: datetime | None = None). pypi.org - Signature changed
itsdangerous.base64_decode
Was def base64_decode(string: _t_str_bytes) -> bytes; now def base64_decode(string: str | bytes) -> bytes. pypi.org - Signature changed
itsdangerous.base64_encode
Was def base64_encode(string: _t_str_bytes) -> bytes; now def base64_encode(string: str | bytes) -> bytes. pypi.org - Signature changed
itsdangerous.encoding.base64_decode
Was def base64_decode(string: _t_str_bytes) -> bytes; now def base64_decode(string: str | bytes) -> bytes. pypi.org - Signature changed
itsdangerous.encoding.base64_encode
Was def base64_encode(string: _t_str_bytes) -> bytes; now def base64_encode(string: str | bytes) -> bytes. pypi.org - Signature changed
itsdangerous.encoding.want_bytes
Was def want_bytes(s: _t_str_bytes, encoding: str = 'utf-8', errors: str = 'strict') -> bytes; now def want_bytes(s: str | bytes, encoding: str = 'utf-8', errors: str = 'strict') -> bytes. pypi.org - Signature changed
itsdangerous.exc.BadHeader.__init__
Was def __init__(self, message: str, payload: _t_opt_any = None, header: _t_opt_any = None, original_error: _t_opt_exc = None); now def __init__(self, message: str, payload: t.Any | None = None, header: t.Any | None = None, original_error... pypi.org - Signature changed
itsdangerous.exc.BadHeader.header
Was header: _t_opt_any; now header: t.Any | None. pypi.org - Signature changed
itsdangerous.exc.BadHeader.original_error
Was original_error: _t_opt_exc; now original_error: Exception | None. pypi.org - Signature changed
itsdangerous.exc.BadPayload.__init__
Was def __init__(self, message: str, original_error: _t_opt_exc = None); now def __init__(self, message: str, original_error: Exception | None = None). pypi.org - Signature changed
itsdangerous.exc.BadPayload.original_error
Was original_error: _t_opt_exc; now original_error: Exception | None. pypi.org - Signature changed
itsdangerous.exc.BadSignature.__init__
Was def __init__(self, message: str, payload: _t_opt_any = None); now def __init__(self, message: str, payload: t.Any | None = None). pypi.org - Signature changed
itsdangerous.exc.BadSignature.payload
Was payload: _t_opt_any; now payload: t.Any | None. pypi.org - Signature changed
itsdangerous.exc.BadTimeSignature.__init__
Was def __init__(self, message: str, payload: _t_opt_any = None, date_signed: _t.Optional[datetime] = None); now def __init__(self, message: str, payload: t.Any | None = None, date_signed: datetime | None = None). pypi.org - Signature changed
itsdangerous.Serializer
Was class Serializer; now class Serializer(t.Generic[_TSerialized]). pypi.org - Signature changed
itsdangerous.Serializer.__init__
Was def __init__(self, secret_key: _t_secret_key, salt: _t_opt_str_bytes = b'itsdangerous', serializer: _t.Any = None, serializer_kwargs: _t_opt_kwargs = None, signer: _t.Optional[_t_signer] = None, signer_kwargs: _t_opt_kwargs = None... pypi.org - Signature changed
itsdangerous.Serializer.default_fallback_signers
Was default_fallback_signers: _t_fallbacks; now default_fallback_signers: list[dict[str, t.Any] | tuple[type[Signer], dict[str, t.Any]] | type[Signer]]. pypi.org - Signature changed
itsdangerous.Serializer.default_serializer
Was default_serializer: _t.Any; now default_serializer: _PDataSerializer[t.Any]. pypi.org - Signature changed
itsdangerous.Serializer.default_signer
Was default_signer: _t_signer; now default_signer: type[Signer]. pypi.org - Signature changed
itsdangerous.Serializer.dump
Was def dump(self, obj: _t.Any, f: _t.IO, salt: _t_opt_str_bytes = None) -> None; now def dump(self, obj: t.Any, f: t.IO[t.Any], salt: str | bytes | None = None) -> None. pypi.org - Signature changed
itsdangerous.Serializer.dumps
Was def dumps(self, obj: _t.Any, salt: _t_opt_str_bytes = None) -> _t_str_bytes; now def dumps(self, obj: t.Any, salt: str | bytes | None = None) -> _TSerialized. pypi.org - Signature changed
itsdangerous.Serializer.fallback_signers
Was fallback_signers: _t_fallbacks; now fallback_signers: list[dict[str, t.Any] | tuple[type[Signer], dict[str, t.Any]] | type[Signer]]. pypi.org - Signature changed
itsdangerous.serializer.is_text_serializer
Was def is_text_serializer(serializer: _t.Any) -> bool; now def is_text_serializer(serializer: _PDataSerializer[t.Any]) -> te.TypeGuard[_PDataSerializer[str]]. pypi.org - Signature changed
itsdangerous.Serializer.iter_unsigners
Was def iter_unsigners(self, salt: _t_opt_str_bytes = None) -> _t.Iterator[Signer]; now def iter_unsigners(self, salt: str | bytes | None = None) -> cabc.Iterator[Signer]. pypi.org - Signature changed
itsdangerous.Serializer.load
Was def load(self, f: _t.IO, salt: _t_opt_str_bytes = None) -> _t.Any; now def load(self, f: t.IO[t.Any], salt: str | bytes | None = None) -> t.Any. pypi.org - Signature changed
itsdangerous.Serializer.load_payload
Was def load_payload(self, payload: bytes, serializer: _t.Optional[_t.Any] = None) -> _t.Any; now def load_payload(self, payload: bytes, serializer: _PDataSerializer[t.Any] | None = None) -> t.Any. pypi.org - Signature changed
itsdangerous.Serializer.load_unsafe
Was def load_unsafe(self, f: _t.IO, salt: _t_opt_str_bytes = None) -> _t_load_unsafe; now def load_unsafe(self, f: t.IO[t.Any], salt: str | bytes | None = None) -> tuple[bool, t.Any]. pypi.org - Signature changed
itsdangerous.Serializer.loads
Was def loads(self, s: _t_str_bytes, salt: _t_opt_str_bytes = None, **kwargs: _t.Any) -> _t.Any; now def loads(self, s: str | bytes, salt: str | bytes | None = None, **kwargs: t.Any) -> t.Any. pypi.org - Signature changed
itsdangerous.Serializer.loads_unsafe
Was def loads_unsafe(self, s: _t_str_bytes, salt: _t_opt_str_bytes = None) -> _t_load_unsafe; now def loads_unsafe(self, s: str | bytes, salt: str | bytes | None = None) -> tuple[bool, t.Any]. pypi.org - Signature changed
itsdangerous.Serializer.make_signer
Was def make_signer(self, salt: _t_opt_str_bytes = None) -> Signer; now def make_signer(self, salt: str | bytes | None = None) -> Signer. pypi.org - Signature changed
itsdangerous.Serializer.secret_keys
Was secret_keys: _t.List[bytes]; now secret_keys: list[bytes]. pypi.org - Signature changed
itsdangerous.serializer.Serializer
Was class Serializer; now class Serializer(t.Generic[_TSerialized]). pypi.org - Signature changed
itsdangerous.Serializer.serializer
Was serializer: _t.Any; now serializer: _PDataSerializer[_TSerialized]. pypi.org - Signature changed
itsdangerous.Serializer.serializer_kwargs
Was serializer_kwargs: _t_kwargs; now serializer_kwargs: dict[str, t.Any]. pypi.org - Signature changed
itsdangerous.serializer.Serializer.__init__
Was def __init__(self, secret_key: _t_secret_key, salt: _t_opt_str_bytes = b'itsdangerous', serializer: _t.Any = None, serializer_kwargs: _t_opt_kwargs = None, signer: _t.Optional[_t_signer] = None, signer_kwargs: _t_opt_kwargs = None... pypi.org - Signature changed
itsdangerous.serializer.Serializer.default_fallback_signers
Was default_fallback_signers: _t_fallbacks; now default_fallback_signers: list[dict[str, t.Any] | tuple[type[Signer], dict[str, t.Any]] | type[Signer]]. pypi.org - Signature changed
itsdangerous.serializer.Serializer.default_serializer
Was default_serializer: _t.Any; now default_serializer: _PDataSerializer[t.Any]. pypi.org - Signature changed
itsdangerous.serializer.Serializer.default_signer
Was default_signer: _t_signer; now default_signer: type[Signer]. pypi.org - Signature changed
itsdangerous.serializer.Serializer.dump
Was def dump(self, obj: _t.Any, f: _t.IO, salt: _t_opt_str_bytes = None) -> None; now def dump(self, obj: t.Any, f: t.IO[t.Any], salt: str | bytes | None = None) -> None. pypi.org - Signature changed
itsdangerous.serializer.Serializer.dumps
Was def dumps(self, obj: _t.Any, salt: _t_opt_str_bytes = None) -> _t_str_bytes; now def dumps(self, obj: t.Any, salt: str | bytes | None = None) -> _TSerialized. pypi.org - Signature changed
itsdangerous.serializer.Serializer.fallback_signers
Was fallback_signers: _t_fallbacks; now fallback_signers: list[dict[str, t.Any] | tuple[type[Signer], dict[str, t.Any]] | type[Signer]]. pypi.org - Signature changed
itsdangerous.serializer.Serializer.iter_unsigners
Was def iter_unsigners(self, salt: _t_opt_str_bytes = None) -> _t.Iterator[Signer]; now def iter_unsigners(self, salt: str | bytes | None = None) -> cabc.Iterator[Signer]. pypi.org
And 50 more in this version. Sign up to see every change
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.