mirror of https://github.com/astral-sh/ruff
add todos
This commit is contained in:
parent
d94b2d3578
commit
67ed2c4cdc
|
|
@ -405,6 +405,10 @@ reveal_type(extract_t(Q[str]())) # revealed: str
|
||||||
Passing anything else results in an error:
|
Passing anything else results in an error:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
# TODO: We currently get an error for the specialization failure, and then another because the
|
||||||
|
# argument is not assignable to the (default-specialized) parameter annotation. We really only need
|
||||||
|
# one of them.
|
||||||
|
# error: [invalid-argument-type]
|
||||||
# error: [invalid-argument-type]
|
# error: [invalid-argument-type]
|
||||||
reveal_type(extract_t([1, 2])) # revealed: Unknown
|
reveal_type(extract_t([1, 2])) # revealed: Unknown
|
||||||
```
|
```
|
||||||
|
|
@ -466,6 +470,10 @@ reveal_type(extract_optional_t(P[int]())) # revealed: int
|
||||||
Passing anything else results in an error:
|
Passing anything else results in an error:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
# TODO: We currently get an error for the specialization failure, and then another because the
|
||||||
|
# argument is not assignable to the (default-specialized) parameter annotation. We really only need
|
||||||
|
# one of them.
|
||||||
|
# error: [invalid-argument-type]
|
||||||
# error: [invalid-argument-type]
|
# error: [invalid-argument-type]
|
||||||
reveal_type(extract_optional_t(Q[str]())) # revealed: Unknown
|
reveal_type(extract_optional_t(Q[str]())) # revealed: Unknown
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,10 @@ reveal_type(extract_t(Q[str]())) # revealed: str
|
||||||
Passing anything else results in an error:
|
Passing anything else results in an error:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
# TODO: We currently get an error for the specialization failure, and then another because the
|
||||||
|
# argument is not assignable to the (default-specialized) parameter annotation. We really only need
|
||||||
|
# one of them.
|
||||||
|
# error: [invalid-argument-type]
|
||||||
# error: [invalid-argument-type]
|
# error: [invalid-argument-type]
|
||||||
reveal_type(extract_t([1, 2])) # revealed: Unknown
|
reveal_type(extract_t([1, 2])) # revealed: Unknown
|
||||||
```
|
```
|
||||||
|
|
@ -417,6 +421,10 @@ reveal_type(extract_optional_t(P[int]())) # revealed: int
|
||||||
Passing anything else results in an error:
|
Passing anything else results in an error:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
# TODO: We currently get an error for the specialization failure, and then another because the
|
||||||
|
# argument is not assignable to the (default-specialized) parameter annotation. We really only need
|
||||||
|
# one of them.
|
||||||
|
# error: [invalid-argument-type]
|
||||||
# error: [invalid-argument-type]
|
# error: [invalid-argument-type]
|
||||||
reveal_type(extract_optional_t(Q[str]())) # revealed: Unknown
|
reveal_type(extract_optional_t(Q[str]())) # revealed: Unknown
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue