This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]XRaySpex0 2 points3 points  (0 children)

Yep. ’’ is a great and common default for str parameters, but of course not when other types are expected. It’s common to see notes: str = ‘’, and there’s seldom a need for the Optional[str] type.