mypy erroneously reports no [mypy] section in config file unless --config-file is specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mypy (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Using mypy 0.670 installed via pip.
I created a file~/.
If I use python3 -m mypy [module to check]
I get an error:
[~]/.config/
Whereas if I use python3 -m mypy [module to check] --config-file ~/.config/
there is no error message and the config file is processed.
Expected behaviour:
No error message if the file contains a [mypy] section
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: mypy (not installed)
ProcVersionSign
Uname: Linux 5.0.0-25-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 26 12:07:42 2019
SourcePackage: mypy
UpgradeStatus: Upgraded to disco on 2019-04-25 (123 days ago)
I can confirm that this behavior still exists in mypy 0.781