Fix type errors in template (#493)

This commit is contained in:
叶子 2023-02-13 01:36:16 +08:00 committed by GitHub
parent cdf93ed004
commit 094082c35b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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"),

View File

@ -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}",