module.py:12: error: Module 'dateutil.parser' has no attribute 'ParserError'
Found 1 error in 1 file (checked 1 source file)
>>> import dateutil.parser
>>> dir(dateutil.parser)
['DEFAULTPARSER', 'DEFAULTTZPARSER', 'ParserError', 'UnknownTimezoneWarning', '__all__', '__builtins__', '__cached__', '__deprecate_private_class', '__deprecated_private_func', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_parser', '_parsetz', '_resultbase', '_timelex', '_tzparser', 'isoparse', 'isoparser', 'parse', 'parser', 'parserinfo']
mypy==0.770
mypy-extensions==0.4.3
> python --version
Python 3.8.3
It seems the ParserError is missing in dateutil/parser stubs file.
Error:
Dateutil dir:
Packages versions
Edit: add Python version