# HG changeset patch
# User Ilya Etingof <etingof@gmail.com>
# Date 1569913490 -7200
#      Tue Oct 01 09:04:50 2019 +0200
# Node ID c0eb0e89f52d4cb5df3b958bce140a8139463620
# Parent  3821c5d960ab3efafdb9705f283a4fafb4cd1e1b
Update docstring on streaming.read

Co-Authored-By: Jan Pipek <jan.pipek@gmail.com>

diff --git a/pyasn1/codec/streaming.py b/pyasn1/codec/streaming.py
--- a/pyasn1/codec/streaming.py
+++ b/pyasn1/codec/streaming.py
@@ -209,7 +209,7 @@
 
     Yields
     ------
-    : :py:class:`bytes` or :py:class:`str` or None
+    : :py:class:`bytes` or :py:class:`str` or :py:class:`SubstrateUnderrunError`
         Returns read data or :py:class:`~pyasn1.error.SubstrateUnderrunError`
         object if no `size` bytes is readily available in the stream. The
         data type depends on Python major version