Skip to content

Commit

Permalink
chore: new link and operation types
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 24, 2024
1 parent f905665 commit 356a1d5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/appier/model.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable, Self, Sequence
from typing import Any, Callable, Self, Sequence
from .base import App

class Model:
Expand Down Expand Up @@ -45,4 +45,21 @@ class Model:
class Field:
def __init__(self, *args, **kwargs): ...

def link(
name: str | None = ...,
description: str | None = ...,
parameters: tuple = ...,
context: bool = ...,
devel: bool = ...,
) -> Callable[[Callable], Callable]: ...
def operation(
name: str | None = ...,
description: str | None = ...,
parameters: tuple = ...,
kwargs: dict[str, Any] | None = ...,
factory: bool = ...,
level: int = ...,
devel: bool = ...,
) -> Callable[[Callable], Callable]: ...

field = Field

0 comments on commit 356a1d5

Please sign in to comment.