mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
PY-86002 Fix more new tests that were expected to generate type hints with weak unions
Because UnsafeUnion is not denotable, we used to generate Any in such cases. (cherry picked from commit 2c43848c86ccbab416bd321aee2f999f61eda756) IJ-MR-184619 GitOrigin-RevId: 1f086ddc0e83b26e371cc3a3b64407e1508d57e2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
060b900cf9
commit
de837fb378
@@ -6,6 +6,6 @@ def foo(num):
|
||||
return 1
|
||||
|
||||
|
||||
def bar(num_new) -> Any:
|
||||
def bar(num_new) -> bool | Any:
|
||||
return num_new >= 0 \
|
||||
and num_new <= 9
|
||||
@@ -8,6 +8,6 @@ def foo(num):
|
||||
return 1
|
||||
|
||||
|
||||
def bar(num_new) -> Any:
|
||||
def bar(num_new) -> bool | Any:
|
||||
return (num_new >= 0
|
||||
and num_new <= 9)
|
||||
Reference in New Issue
Block a user