basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

enforce parenthesis on ambigious types

Open KotlinIsland opened this issue 2 years ago • 0 comments

def guard(x: object, y: object) -> a is int & b is str if True else a is str & b is int: ...

The tricky part is that ast removes parens...

KotlinIsland avatar Nov 18 '23 10:11 KotlinIsland