Skip to content

Commit b59461b

Browse files
srittauAlexWaygood
andauthored
Use italics in docstring
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent da0587b commit b59461b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typing_extensions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ class Reader(Protocol[T_co]):
866866
def read(self, size: int = ..., /) -> T_co:
867867
"""Read data from the input stream and return it.
868868
869-
If size is specified, at most size items (bytes/characters) will be
869+
If *size* is specified, at most *size* items (bytes/characters) will be
870870
read.
871871
"""
872872

@@ -881,7 +881,7 @@ class Writer(Protocol[T_contra]):
881881

882882
@abc.abstractmethod
883883
def write(self, data: T_contra, /) -> int:
884-
"""Write data to the output stream and return the number of items written."""
884+
"""Write *data* to the output stream and return the number of items written."""
885885

886886

887887
_NEEDS_SINGLETONMETA = (

0 commit comments

Comments
 (0)