diff --git a/peps/pep-0526.rst b/peps/pep-0526.rst index ce822eb8e04..d3f0eafe7eb 100644 --- a/peps/pep-0526.rst +++ b/peps/pep-0526.rst @@ -438,13 +438,13 @@ Here is an example:: from typing import Dict class Player: - ... + __points: int players: Dict[str, Player] - __points: int print(__annotations__) - # prints: {'players': typing.Dict[str, __main__.Player], - # '_Player__points': } + # prints: {'players': typing.Dict[str, __main__.Player]} + print(Player.__annotations__) + # prints: {'_Player__points': } ``__annotations__`` is writable, so this is permitted::