From 0b825b521ffb464a99b4f3b48ce03bf663c93a86 Mon Sep 17 00:00:00 2001 From: fubuloubu <3859395+fubuloubu@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:23:36 -0500 Subject: [PATCH] docs: add a note about the use of Annotated, which was only added in 3.9 --- README.md | 2 ++ example.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d547cd7a..5a481371 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ To run your bot against a live network, this SDK includes a simple runner you ca $ silverback run "example:app" --network :mainnet:alchemy ``` +**NOTE**: The example is designed to work with Python 3.9+, and we suggest using 3.11+ for speed. + ## Docker Usage ```sh diff --git a/example.py b/example.py index 60d13456..1359f684 100644 --- a/example.py +++ b/example.py @@ -1,4 +1,4 @@ -from typing import Annotated +from typing import Annotated # NOTE: Only Python 3.9+ from ape import chain from ape.api import BlockAPI