diff --git a/pynecone/.templates/app/tutorial.py b/pynecone/.templates/app/tutorial.py index 55ec6a503..8ade0d9fa 100644 --- a/pynecone/.templates/app/tutorial.py +++ b/pynecone/.templates/app/tutorial.py @@ -1,3 +1,4 @@ +# type: ignore """Welcome to Pynecone! This file outlines the steps to create a basic app.""" from pcconfig import config @@ -13,7 +14,7 @@ class State(pc.State): pass -def index(): +def index() -> pc.Component: return pc.center( pc.vstack( pc.heading("Welcome to Pynecone!", font_size="2em"), diff --git a/pynecone/compiler/templates.py b/pynecone/compiler/templates.py index 02ddda664..95a9aa098 100644 --- a/pynecone/compiler/templates.py +++ b/pynecone/compiler/templates.py @@ -8,7 +8,6 @@ from pynecone.utils import join # Template for the Pynecone config file. PCCONFIG = f"""import pynecone as pc - config = pc.Config( app_name="{{app_name}}", db_url="{constants.DB_URL}",