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().keyword_only(x=1)) # revealed: 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
|
||||
|
||||
|
|
|
|||
|
|
@ -144,11 +144,9 @@ from functools import cache
|
|||
def f(x: int) -> int:
|
||||
return x**2
|
||||
|
||||
# TODO: revealed: _lru_cache_wrapper[int]
|
||||
# revealed: _lru_cache_wrapper[int] | _lru_cache_wrapper[Unknown]
|
||||
# revealed: _lru_cache_wrapper[int]
|
||||
reveal_type(f)
|
||||
# TODO: revealed: int
|
||||
# revealed: int | Unknown
|
||||
# revealed: int
|
||||
reveal_type(f(1))
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue