Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
update docstring for Python2
  • Loading branch information
ilevkivskyi committed Sep 9, 2016
commit 5d1944834c4959e4a047b8b5b4a9c15c974c1f7c
4 changes: 2 additions & 2 deletions python2/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@ class _ClassVar(metaclass=TypingMeta, _root=True):
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

ClassVar accepts only types and cannot be further subscribed.

Expand Down