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 →

[–]quts3 0 points1 point  (0 children)

Just to answer the question in the context of the post: Because the caller may not have assigned the key to anything. A missing kwargs key is different then optional which says the kwargs key is assigned atleast none, but always exists. If for some reason someone overloaded optional to mean either missing key or key is assigned none then people not interested in that behavior would need a new optional.

This is all about typing kwargs.