[New-bugs-announce] [issue41562] StreamReaderProtocol inheritance
Dan Pascu
report at bugs.python.org
Sun Aug 16 02:57:08 EDT 2020
New submission from Dan Pascu <danpascu777 at gmail.com>:
I noticed that StreamReaderProtocol is defined like this:
class StreamReaderProtocol(FlowControlMixin, protocols.Protocol):
...
but FlowControlMixin already inherits protocols.Protocol:
class FlowControlMixin(protocols.Protocol):
...
It seems redundant that StreamReaderProtocol has protocols.Protocol as a second base class (is this an oversight or I'm missing some hidden reasoning behind it in which case it might be useful to have it mentioned in a comment to avoid confusion).
----------
components: asyncio
messages: 375504
nosy: asvetlov, danpascu777, yselivanov
priority: normal
severity: normal
status: open
title: StreamReaderProtocol inheritance
type: enhancement
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41562>
_______________________________________
More information about the New-bugs-announce
mailing list