AFAIK, the default parameters should not have space around the = sign. def foo(bar: str="baz") What is the convention when there are union types def foo(bar: str | None=None) def foo(bar: str | None = None) def foo(bar: (str | None)=None) # Are parenthesis standard? Continue reading...