[ty] Fix LiteralString import in ty_extensions.pyi (#22244)
This commit is contained in:
@@ -999,6 +999,7 @@ from ty_extensions import static_assert
|
||||
static_assert()
|
||||
|
||||
# error: [too-many-positional-arguments] "Too many positional arguments to function `static_assert`: expected 2, got 3"
|
||||
# error: [invalid-argument-type] "Argument to function `static_assert` is incorrect: Expected `LiteralString | None`, found `Literal[2]`"
|
||||
static_assert(True, 2, 3)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user