Skip to content

Commit 13ea4e5

Browse files
[red-knot] Fix comments in type_api.md (#17425)
1 parent a2a7b1e commit 13ea4e5

File tree

1 file changed

+2
-2
lines changed
  • crates/red_knot_python_semantic/resources/mdtest

1 file changed

+2
-2
lines changed

crates/red_knot_python_semantic/resources/mdtest/type_api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def negate(n1: Not[int], n2: Not[Not[int]], n3: Not[Not[Not[int]]]) -> None:
2727
n: Not[int, str]
2828

2929
def static_truthiness(not_one: Not[Literal[1]]) -> None:
30-
# these are both boolean-literal types,
31-
# since all possible runtime objects that are created by the literal syntax `1`
30+
# TODO: `bool` is not incorrect, but these would ideally be `Literal[True]` and `Literal[False]`
31+
# respectively, since all possible runtime objects that are created by the literal syntax `1`
3232
# are members of the type `Literal[1]`
3333
reveal_type(not_one is not 1) # revealed: bool
3434
reveal_type(not_one is 1) # revealed: bool

0 commit comments

Comments
 (0)