Skip to content

Commit da69378

Browse files
refactor: update __all__ with hello in __init__.py
1 parent 52424a1 commit da69378

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ pip install python_package_template
2323
Print greeting:
2424

2525
```py
26-
from python_package_template import template
26+
from python_package_template import hello
2727

28-
print(template.hello())
28+
print(hello())
2929
```
3030

3131
## License
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
"""Python Package Template"""
22

3+
from .template import hello
4+
5+
__all__ = ["hello"]
6+
37
__version__ = "0.0.0"

tests/python_package_template/test_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from python_package_template.template import hello
1+
from python_package_template import hello
22

33

44
def test_hello():

0 commit comments

Comments
 (0)