Remove options from GreatAI.create

This commit is contained in:
Andras Schmelczer 2022-07-07 17:19:11 +02:00
parent 612f3ac5e1
commit b6c7a4b7ca
9 changed files with 24 additions and 83 deletions

View file

@ -22,18 +22,6 @@ def test_create_trivial_cases() -> None:
assert hello_world_2("andras").output == "Hello andras!"
@GreatAI.create()
def hello_world_3(name: str) -> str:
return f"Hello {name}!"
assert hello_world_3("andras").output == "Hello andras!"
@GreatAI.create()
def hello_world_4(name): # type: ignore
return f"Hello {name}!"
assert hello_world_4("andras").output == "Hello andras!"
def test_create_with_other_decorator() -> None:
@GreatAI.create
@ -44,7 +32,7 @@ def test_create_with_other_decorator() -> None:
assert hello_world_1("andras").output == "Hello andras!"
@lru_cache
@GreatAI.create()
@GreatAI.create
def hello_world_2(name: str) -> str:
return f"Hello {name}!"