Make codebase compatible with Python 3.7

This commit is contained in:
Andras Schmelczer 2022-07-29 13:05:05 +02:00
parent 2ad06e8b38
commit f8db199996
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
11 changed files with 125 additions and 51 deletions

View file

@ -25,13 +25,13 @@ def test_create_trivial_cases() -> None:
def test_create_with_other_decorator() -> None:
@GreatAI.create
@lru_cache
@lru_cache()
def hello_world_1(name: str) -> str:
return f"Hello {name}!"
assert hello_world_1("andras").output == "Hello andras!"
@lru_cache
@lru_cache()
@GreatAI.create
def hello_world_2(name: str) -> str:
return f"Hello {name}!"