Skip to content

Commit

Permalink
Clarified in documentation that ... is an ellipsis token.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictraut committed Jun 11, 2024
1 parent d34d9cc commit 8e1797c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/type-concepts-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ In addition to assignment-based type narrowing, Pyright supports the following t

* `x is None` and `x is not None`
* `x == None` and `x != None`
* `x is ...` and `x is not ...`
* `x == ...` and `x != ...`
* `x is ...` and `x is not ...` (where `...` is an ellipsis token)
* `x == ...` and `x != ...` (where `...` is an ellipsis token)
* `type(x) is T` and `type(x) is not T`
* `type(x) == T` and `type(x) != T`
* `x is E` and `x is not E` (where E is a literal enum or bool)
Expand Down

0 comments on commit 8e1797c

Please sign in to comment.