[Twisted-Python] Question about FileDescriptor.loseConnection() signature found by mypy

Glyph glyph at twistedmatrix.com
Tue Jun 16 02:51:21 MDT 2020



> On Jun 15, 2020, at 8:43 PM, Craig Rodrigues <rodrigc at crodrigues.org> wrote:
> 
> In twisted.internet.abstract.FileDescriptor.loseConnection, the loseConnection method
> is defined like:
> 
>     def loseConnection(self, _connDone=failure.Failure(main.CONNECTION_DONE)):

I think this signature might just be... wrong?  ITransport doesn't include it.  Does anything actually use this argument?

-g




More information about the Twisted-Python mailing list