Fix type errors in template (#493)
This commit is contained in:
parent
cdf93ed004
commit
094082c35b
@ -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"),
|
||||
|
@ -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}",
|
||||
|
Loading…
Reference in New Issue
Block a user