I have a doubt regarding Optional
type hint in the Google Python Style Guide. In section 3.19.5, the following is shown as correct usage:
def func(a: Optional[Text], b: Optional[Text] = None) -> Text:
I don't understand a: Optional[Text]
. Why is it not a: Optional[Text] = None
?