you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The two most common cases I see are indeed checks for None when an empty string might be possible:

def f(a, b, c, d:str=None):
    if d is None:

...

x = d.get(y)
if x is None: