Skip to content

Commit a798795

Browse files
author
Doru Irimescu
committed
Add class and decorator to __init__
1 parent 704cbdf commit a798795

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/exception_with_retry/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
else:
77
from importlib_metadata import PackageNotFoundError, version # pragma: no cover
88

9+
from exception_with_retry.source import ExceptionWithRetry, exception_with_retry
10+
11+
__all__ = ["ExceptionWithRetry", "exception_with_retry"]
912
try:
1013
# Change here if project is renamed and does not equal the package name
1114
dist_name = "exception-with-retry"

tests/test_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from typing import List
33

4-
from exception_with_retry.source import ExceptionWithRetry, exception_with_retry
4+
from exception_with_retry import ExceptionWithRetry, exception_with_retry
55

66
__author__ = "Doru Irimescu"
77
__copyright__ = "Doru Irimescu"

0 commit comments

Comments
 (0)