Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tenacity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import time
import typing as t
import warnings
from abc import ABCMeta, abstractmethod
from abc import ABC, abstractmethod
from concurrent import futures
from inspect import iscoroutinefunction

Expand Down Expand Up @@ -225,7 +225,7 @@ def __exit__(
return None


class BaseRetrying(metaclass=ABCMeta):
class BaseRetrying(ABC):
def __init__(
self,
sleep: t.Callable[[t.Union[int, float]], None] = sleep,
Expand Down
2 changes: 1 addition & 1 deletion tenacity/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from tenacity import RetryCallState


class retry_base(metaclass=abc.ABCMeta):
class retry_base(abc.ABC):
"""Abstract base class for retry strategies."""

@abc.abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion tenacity/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from tenacity import RetryCallState


class stop_base(metaclass=abc.ABCMeta):
class stop_base(abc.ABC):
"""Abstract base class for stop strategies."""

@abc.abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion tenacity/wait.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from tenacity import RetryCallState


class wait_base(metaclass=abc.ABCMeta):
class wait_base(abc.ABC):
"""Abstract base class for wait strategies."""

@abc.abstractmethod
Expand Down