Let's say we have a page that could contain socialURL but this may not be present always, how should we go about marking this?
import typing
class ExamplePage1(Templated, Content):
socialURL: typing.Union[None, dict]
import typing
class ExamplePage2(Templated, Content):
socialURL: typing.Optional[dict]
Is one of these is preferable to the other?
Let's say we have a page that could contain
socialURLbut this may not be present always, how should we go about marking this?Is one of these is preferable to the other?