Skip to content

Commit

Permalink
add pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
victorteokw committed Jan 30, 2024
1 parent dfd946e commit 8b2b98d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Empty file removed py.typed
Empty file.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "teo"
requires-python = ">=3.7"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
26 changes: 26 additions & 0 deletions teo/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class App:

def __init__(self):
"""
Create a new app. Only one can be present in a program.
"""

def main_namespace(self) -> Namespace:
"""
Get the attached main namespace of the app.
"""
pass

async def run(self):
"""
Start the app.
"""


class Namespace:
"""
Namespace is where handlers and models are defined.
"""

def define_handler(self):
pass

0 comments on commit 8b2b98d

Please sign in to comment.