diff --git a/capsula/_capsule.py b/capsula/_capsule.py index d0c62820..8eac1079 100644 --- a/capsula/_capsule.py +++ b/capsula/_capsule.py @@ -3,8 +3,6 @@ from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Any, Callable, Tuple, Union -from typing_extensions import Annotated, deprecated - if TYPE_CHECKING: from collections.abc import Mapping @@ -47,19 +45,3 @@ def build(params: CapsuleParams) -> Self: # type: ignore[type-var,misc] # noqa: return cls(*args, **kwargs) return build - - # YORE: Bump 0.6.0: Remove block. - @classmethod - @deprecated("Use `builder` instead. Deprecated since v0.4.0 and will be removed in v0.6.0.") - def default( - cls, - *args: Any, - **kwargs: Any, - ) -> Annotated[ - Callable[[CapsuleParams], Self], - deprecated("""Deprecated since v0.4.0 and will be removed in v0.6.0. - - Use `builder` method instead. - """), - ]: - return cls.builder(*args, **kwargs) diff --git a/capsula/_reporter/_base.py b/capsula/_reporter/_base.py index bbee9d44..930673ac 100644 --- a/capsula/_reporter/_base.py +++ b/capsula/_reporter/_base.py @@ -3,8 +3,6 @@ from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Any, Callable, Final -from typing_extensions import Annotated, deprecated - if TYPE_CHECKING: from capsula._backport import Self from capsula._capsule import Capsule @@ -35,19 +33,3 @@ def build(params: CapsuleParams) -> Self: # type: ignore[type-var,misc] # noqa: return cls(*args, **kwargs) return build - - # YORE: Bump 0.6.0: Remove block. - @classmethod - @deprecated("Use `builder` instead. Deprecated since v0.4.0. Will be removed in v0.6.0.") - def default( - cls, - *args: Any, - **kwargs: Any, - ) -> Annotated[ - Callable[[CapsuleParams], Self], - deprecated("""Deprecated since v0.4.0. Will be removed in v0.6.0. - - Use `builder` method instead. - """), - ]: - return cls.builder(*args, **kwargs)