Fix 'None' assignments
The following discussion from !1 (merged) should be addressed:
-
@erxleb87 started a discussion: (+1 comment) Why ask for a parameter in the first place to then ensure it has a fixed value? Also:
assert date is None
You want to check for identity here, not equality. See this explanation fron Stackoverflow
Or is this a typo and you wanted to
assert date is not None