future-typing
future-typing copied to clipboard
'|' operator is getting converted to typing.Union regardless of context
# -*- coding: future_typing -*-
a = 1 | 2
Is getting converted to
# -*- coding: utf-8 -*-
import typing as typing___
a =typing___.Union [1 ,2 ]
It should be converted only in annotations, I guess