You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. With the latest version of mypy and mypy-zope we're getting mypy errors that I think are cache related. The error goes away after rm -rf .mypy_cache
Here's the smallest repro I could make:
src/zg/foo.py:
from zg.bar import ZGScriptProtocol
print(ZGScriptProtocol.transport)
src/zg/bar.py:
from twisted.internet.protocol import ProcessProtocol
class ZGScriptProtocol(ProcessProtocol):
pass
I am able to reliably hit the problem by running the following commands:
$ rm -rf .mypy_cache
$ mypy src/zg/foo.py
Success: no issues found in 1 source file
$ mypy src/zg/foo.py src/zg/bar.py
src/zg/bar.py:3: error: Cannot determine consistent method resolution order (MRO) for "ZGScriptProtocol"
src/zg/foo.py:3: error: "Type[ZGScriptProtocol]" has no attribute "transport"
$ mypy --version
mypy 0.971 (compiled: yes)
mypy-zope==0.3.9 and twisted[tls]==22.4.0
The text was updated successfully, but these errors were encountered:
Hi. With the latest version of mypy and mypy-zope we're getting mypy errors that I think are cache related. The error goes away after
rm -rf .mypy_cache
Here's the smallest repro I could make:
src/zg/foo.py:
src/zg/bar.py:
I am able to reliably hit the problem by running the following commands:
mypy-zope==0.3.9
andtwisted[tls]==22.4.0
The text was updated successfully, but these errors were encountered: