mypy --strict because of reexports
Long story short
With python 3.7, fresh mypy 0.711:
import aiohttp aiohttp.ClientSession
This happens because
from .client import BaseConnector as BaseConnector
from .client import (BaseConnector, ...)
The text was updated successfully, but these errors were encountered:
Yes. Whatever works for you and
Please make sure that both
Mypy version for CI is fixed at rather old
Regarding strict mode, it would be nice to enable it too, but note that it can't be set via
I also set
foo = None ... foo = 1 if bar && foo: # "right hand of && is always false" ... # "dead code"
Fixed like this:
foo: Optional[int] = None ... foo = 1 if bar && foo: ...