Skip to content

Commit

Permalink
Correct example annotation self (#11133)
Browse files Browse the repository at this point in the history
Add needed `covariant=True` for example to pass type checking at `page.first_chunk()` as intended.
  • Loading branch information
ryan-gunderson committed Sep 19, 2021
1 parent b94b04c commit b165e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/more_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ argument is itself generic:

.. code-block:: python
T = TypeVar('T')
T = TypeVar('T', covariant=True)
S = TypeVar('S')
class Storage(Generic[T]):
Expand Down

0 comments on commit b165e42

Please sign in to comment.