diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8b4eec3eab5..898a0f01e1d 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -845,8 +845,8 @@ The module defines the following classes, functions and decorators: and should not be set on instances of that class. Usage:: class Starship: - stats: ClassVar[Dict[str, int]] = {} # class variable - damage: int = 10 # instance variable + stats = {} # type: ClassVar[Dict[str, int]] # class variable + damage = 10 # type: int # instance variable :data:`ClassVar` accepts only types and cannot be further subscribed.