example-code-2e/08-def-type-hints/reveal_array.py
2020-06-11 14:58:15 -03:00

9 lines
145 B
Python

from array import array
from typing import MutableSequence
a = array('d')
reveal_type(a)
b: MutableSequence[float] = array('b')
reveal_type(b)