Skip to content

Commit

Permalink
Fix README code example (#15492)
Browse files Browse the repository at this point in the history
  • Loading branch information
OverShifted authored Sep 25, 2024
1 parent 323d82e commit d5e104d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Then create and run a Python file that uses Prefect `flow` and `task` decorators

```python
from prefect import flow, task
from typing import list
from typing import List
import httpx


Expand All @@ -52,7 +52,7 @@ def get_stars(repo: str):


@flow(name="GitHub Stars")
def github_stars(repos: list[str]):
def github_stars(repos: List[str]):
for repo in repos:
get_stars(repo)

Expand All @@ -72,7 +72,7 @@ To run your workflow on a schedule, turn it into a deployment and schedule it to

```python
if __name__ == "__main__":
github_stars.serve(name="first-deployment", cron="* * * * *")
github_stars.serve(name="first-deployment", cron="* * * * *", parameters={ "repos": ["PrefectHQ/prefect"] })
```

You now have a server running locally that is looking for scheduled deployments!
Expand Down

0 comments on commit d5e104d

Please sign in to comment.