Use '|' operator instead of 'or' for union types (PY-10423)

This commit is contained in:
Andrey Vlasovskikh
2013-07-30 20:20:42 +04:00
parent 3128b7f70a
commit 375938e79a
17 changed files with 27 additions and 29 deletions
@@ -1,2 +1,2 @@
variable "x"
Inferred type: one of (str, int)
Inferred type: str | int
+1 -1
View File
@@ -1 +1 @@
<html><body><small>Assigned to <code>y</code><br></small><code><br>Inferred&nbsp;type:&nbsp;one&nbsp;of&nbsp;(<a href="psi_element://#typename#int">int</a>,&nbsp;<a href="psi_element://#typename#str">str</a>)</code></body></html>
<html><body><small>Assigned to <code>y</code><br></small><code><br>Inferred&nbsp;type:&nbsp;<a href="psi_element://#typename#int">int</a>&nbsp;|&nbsp;<a href="psi_element://#typename#str">str</a></code></body></html>