Skip to content

Commit 305e203

Browse files
pslacerdaemmatyping
andcommitted
Test for None instead of coercing into bool
Co-Authored-By: Ethan Smith <[email protected]>
1 parent c086c86 commit 305e203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def parse_config_file(options: Options, filename: Optional[str],
119119
120120
If filename is None, fall back to default config files.
121121
"""
122-
if filename:
122+
if filename is not None:
123123
filename = os.path.expanduser(filename)
124124
if os.path.splitext(filename)[1] == '.toml':
125125
parse_toml_config_file(options, filename, stdout, stderr)

0 commit comments

Comments
 (0)