Fix TypeError caused by use_annotations=True on Python 3.3