diff options
Diffstat (limited to 'src/pyo3_template')
| -rw-r--r-- | src/pyo3_template/__init__.py | 0 | ||||
| -rw-r--r-- | src/pyo3_template/__main__.py | 8 | ||||
| -rw-r--r-- | src/pyo3_template/_core.pyi | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/pyo3_template/__init__.py b/src/pyo3_template/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/pyo3_template/__init__.py diff --git a/src/pyo3_template/__main__.py b/src/pyo3_template/__main__.py new file mode 100644 index 0000000..0135c6d --- /dev/null +++ b/src/pyo3_template/__main__.py @@ -0,0 +1,8 @@ +from ._core import sum_as_string + +def main(): + print(sum_as_string(1, 2)) + + +if __name__ == "__main__": + main()
\ No newline at end of file diff --git a/src/pyo3_template/_core.pyi b/src/pyo3_template/_core.pyi new file mode 100644 index 0000000..4945a82 --- /dev/null +++ b/src/pyo3_template/_core.pyi @@ -0,0 +1,3 @@ +def sum_as_string(self, a: int, b: int) -> str: ... + +class Base: ...
\ No newline at end of file |
