mirror of https://github.com/astral-sh/ruff
update tests
This commit is contained in:
parent
a892be3124
commit
bfde3e41a7
|
|
@ -194,7 +194,7 @@ reveal_type(B().name_does_not_matter()) # revealed: B
|
||||||
reveal_type(B().positional_only(1)) # revealed: B
|
reveal_type(B().positional_only(1)) # revealed: B
|
||||||
reveal_type(B().keyword_only(x=1)) # revealed: B
|
reveal_type(B().keyword_only(x=1)) # revealed: B
|
||||||
# TODO: This should deally be `B`
|
# TODO: This should deally be `B`
|
||||||
reveal_type(B().decorated_method()) # revealed: Self@decorated_method | Unknown
|
reveal_type(B().decorated_method()) # revealed: Self@decorated_method
|
||||||
|
|
||||||
reveal_type(B().a_property) # revealed: B
|
reveal_type(B().a_property) # revealed: B
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -144,11 +144,9 @@ from functools import cache
|
||||||
def f(x: int) -> int:
|
def f(x: int) -> int:
|
||||||
return x**2
|
return x**2
|
||||||
|
|
||||||
# TODO: revealed: _lru_cache_wrapper[int]
|
# revealed: _lru_cache_wrapper[int]
|
||||||
# revealed: _lru_cache_wrapper[int] | _lru_cache_wrapper[Unknown]
|
|
||||||
reveal_type(f)
|
reveal_type(f)
|
||||||
# TODO: revealed: int
|
# revealed: int
|
||||||
# revealed: int | Unknown
|
|
||||||
reveal_type(f(1))
|
reveal_type(f(1))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue