File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ class RequiredAtomEntryMixin(XMLBaseModel):
2121
2222
2323class RecommendedAtomEntryMixin (XMLBaseModel ):
24- authors : Optional [ OnlyList [Tag [Person ]]] = Field (alias = "author" , default_factory = list )
24+ authors : OnlyList [Tag [Person ]] = Field (alias = "author" , default_factory = OnlyList )
2525 "Entry authors."
2626
27- links : Optional [ OnlyList [Tag [str ]]] = Field (alias = "link" , default_factory = list )
27+ links : OnlyList [Tag [str ]] = Field (alias = "link" , default_factory = OnlyList )
2828 "The URL of the entry."
2929
3030 content : Optional [Tag [str ]] = None
@@ -35,10 +35,10 @@ class RecommendedAtomEntryMixin(XMLBaseModel):
3535
3636
3737class OptionalAtomEntryMixin (XMLBaseModel ):
38- categories : Optional [ OnlyList [Tag [dict ]]] = Field (alias = "category" , default_factory = list )
38+ categories : OnlyList [Tag [dict ]] = Field (alias = "category" , default_factory = OnlyList )
3939 "Specifies a categories that the entry belongs to."
4040
41- contributors : Optional [ OnlyList [Tag [Person ]]] = Field (alias = "contributor" , default_factory = list )
41+ contributors : OnlyList [Tag [Person ]] = Field (alias = "contributor" , default_factory = OnlyList )
4242 "Entry contributors."
4343
4444 rights : Optional [Tag [str ]] = None
Original file line number Diff line number Diff line change @@ -22,21 +22,21 @@ class RequiredAtomFeedMixin(XMLBaseModel):
2222
2323
2424class RecommendedAtomFeedMixin (XMLBaseModel ):
25- authors : Optional [ OnlyList [Tag [Person ]]] = Field (alias = "author" , default_factory = list )
25+ authors : OnlyList [Tag [Person ]] = Field (alias = "author" , default_factory = OnlyList )
2626 "Names one author of the feed. A feed may have multiple author elements."
2727
28- links : Optional [ OnlyList [Tag [str ]]] = Field (alias = "link" , default_factory = list )
28+ links : OnlyList [Tag [str ]] = Field (alias = "link" , default_factory = OnlyList )
2929 "The URL to the feed. A feed may have multiple link elements."
3030
3131
3232class OptionalAtomFeedMixin (XMLBaseModel ):
33- entries : Optional [ OnlyList [Tag [Entry ]]] = Field (alias = "entry" , default_factory = list )
33+ entries : OnlyList [Tag [Entry ]] = Field (alias = "entry" , default_factory = OnlyList )
3434 "The entries in the feed. A feed may have multiple entry elements."
3535
36- categories : Optional [ OnlyList [Tag [dict ]]] = Field (alias = "category" , default_factory = list )
36+ categories : OnlyList [Tag [dict ]] = Field (alias = "category" , default_factory = OnlyList )
3737 "Specifies a categories that the feed belongs to. The feed may have multiple categories elements."
3838
39- contributors : Optional [ OnlyList [Tag [Person ]]] = Field (alias = "contributor" , default_factory = list )
39+ contributors : OnlyList [Tag [Person ]] = Field (alias = "contributor" , default_factory = OnlyList )
4040 "Feed contributors."
4141
4242 generator : Optional [Tag [str ]] = None
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class RequiredChannelElementsMixin(XMLBaseModel):
2727class OptionalChannelElementsMixin (XMLBaseModel ):
2828 """https://www.rssboard.org/rss-specification#optionalChannelElements."""
2929
30- items : Optional [ OnlyList [Tag [Item ]]] = Field (alias = "item" , default_factory = list )
30+ items : OnlyList [Tag [Item ]] = Field (alias = "item" , default_factory = OnlyList )
3131
3232 language : Optional [Tag [str ]] = None # en-us
3333 "The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page." # noqa
@@ -46,7 +46,7 @@ class OptionalChannelElementsMixin(XMLBaseModel):
4646 last_build_date : Optional [Tag [DateTimeOrStr ]] = None # Sat, 07 Sep 2002 09:42:31 GMT
4747 "The last time the content of the channel changed."
4848
49- categories : Optional [ OnlyList [Tag [str ]]] = Field (alias = "category" , default_factory = list )
49+ categories : OnlyList [Tag [str ]] = Field (alias = "category" , default_factory = OnlyList )
5050 "Specify one or more categories that the channel belongs to. Follows the same rules as the <item.py>-level category element." # noqa
5151
5252 generator : Optional [Tag [str ]] = None # MightyInHouse Content System v2.3
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ class OptionalItemElementsMixin(XMLBaseModel):
2323 author : Optional [Tag [str ]] = None
2424 "Email address of the author of the item."
2525
26- categories : Optional [ OnlyList [Tag [str ]]] = Field (alias = "category" , default_factory = list )
26+ categories : OnlyList [Tag [str ]] = Field (alias = "category" , default_factory = OnlyList )
2727 "Includes the item in one or more categories."
2828
2929 comments : Optional [Tag [str ]] = None
3030 "URL of a page for comments relating to the item."
3131
32- enclosures : Optional [ OnlyList [Tag [str ]]] = Field (alias = "enclosure" , default_factory = list )
32+ enclosures : OnlyList [Tag [str ]] = Field (alias = "enclosure" , default_factory = OnlyList )
3333 # enclosure: Optional[OnlyList[Tag[str]]] = None
3434 "Describes a media object that is attached to the item.\n Can be a list -> https://validator.w3.org/feed/docs/warning/DuplicateEnclosure.html"
3535
You can’t perform that action at this time.
0 commit comments