File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ class UnevaluatedPage:
297297 description : Var | str | None
298298 image : str
299299 on_load : EventType [()] | None
300- meta : Sequence [Mapping [str , str ] | Component ]
300+ meta : Sequence [Mapping [str , Any ] | Component ]
301301 context : Mapping [str , Any ]
302302
303303 def merged_with (self , other : UnevaluatedPage ) -> UnevaluatedPage :
@@ -772,7 +772,7 @@ def add_page(
772772 description : str | Var | None = None ,
773773 image : str = constants .DefaultPage .IMAGE ,
774774 on_load : EventType [()] | None = None ,
775- meta : list [ dict [str , str ] | Component ] = constants .DefaultPage .META_LIST ,
775+ meta : Sequence [ Mapping [str , Any ] | Component ] = constants .DefaultPage .META_LIST ,
776776 context : dict [str , Any ] | None = None ,
777777 ):
778778 """Add a page to the app.
Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ def add_meta(
562562 page : Component ,
563563 title : str ,
564564 image : str ,
565- meta : list [Mapping [str , Any ] | Component ],
565+ meta : Sequence [Mapping [str , Any ] | Component ],
566566 description : str | None = None ,
567567) -> Component :
568568 """Add metadata to a page.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def load_foo():
3131 title = "Foo" ,
3232 image = "foo.png" ,
3333 description = "Foo description" ,
34- meta = [" foo-meta" ],
34+ meta = [{ "name" : "keywords" , "content" : " foo, test" } ],
3535 script_tags = ["foo-script" ],
3636 on_load = load_foo ,
3737 )(foo_ )
@@ -41,7 +41,7 @@ def load_foo():
4141 assert page_data == {
4242 "description" : "Foo description" ,
4343 "image" : "foo.png" ,
44- "meta" : [" foo-meta" ],
44+ "meta" : [{ "name" : "keywords" , "content" : " foo, test" } ],
4545 "on_load" : load_foo ,
4646 "route" : "foo" ,
4747 "script_tags" : ["foo-script" ],
You can’t perform that action at this time.
0 commit comments