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
from twisted.internet.protocol import DatagramProtocol
class Class(DatagramProtocol):
def __init__(self, string, host, port):
self.transport.write(string, (host, port))
The inspector gives an error that class Class has no method transport. Whereas transport is defined by AbstractDatagramProtocol which is inherited by DatagramProtocol
The text was updated successfully, but these errors were encountered:
I think @carlio will need to chime in on this one. I think the problem lies with the environment that Landscape is running prospector in. When twisted is installed, that message doesn't come up. But when run in an environment without twisted, pylint reports that error.
Thanks for looking into it @jayclassless - you're right, it's about how Landscape runs prospector rather than anything else. Currently, it does not install dependencies of your library, so it will find errors that prospector will not find if you run it locally in your environment which does have the dependencies installed.
I'll close this, as it's not a prospector issue, but rather a landscape issue. I've also opened landscapeio/landscape-issues#31 to keep track of the improvement in Landscape behaviour.
For this code:
The inspector gives an error that class Class has no method transport. Whereas transport is defined by
AbstractDatagramProtocol
which is inherited byDatagramProtocol
The text was updated successfully, but these errors were encountered: