Skip to content

Commit

Permalink
Merge pull request #338 from shunichironomura/remove-for-0.6.0
Browse files Browse the repository at this point in the history
Remove `default` method
  • Loading branch information
shunichironomura authored Sep 23, 2024
2 parents 8275f3a + 0f6cce3 commit 3c37b38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions capsula/_capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
18 changes: 0 additions & 18 deletions capsula/_reporter/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 3c37b38

Please sign in to comment.