Skip to content

Commit 183e0d9

Browse files
authored
Merge pull request satwikkansal#160 from vrthra/patch-1
Make sure that default_arg is not passed rather than checking for fal…
2 parents 99280f5 + 2f2fcf8 commit 183e0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ def some_func(default_arg=[]):
21732173
21742174
```py
21752175
def some_func(default_arg=None):
2176-
if not default_arg:
2176+
if default_arg is not None:
21772177
default_arg = []
21782178
default_arg.append("some_string")
21792179
return default_arg

0 commit comments

Comments
 (0)