future-typing icon indicating copy to clipboard operation
future-typing copied to clipboard

'|' operator is getting converted to typing.Union regardless of context

Open Bobronium opened this issue 4 years ago • 0 comments

# -*- 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

Bobronium avatar Feb 15 '21 12:02 Bobronium