mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 00:50:16 +00:00
[red-knot] use a simpler builtin in the benchmark (#12393)
In preparation for supporting resolving builtins, simplify the benchmark so it doesn't look up `str`, which is actually a complex builtin to deal with because it inherits `Sequence[str]`. Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
parent
181e7b3c0d
commit
fa5b19d4b6
1 changed files with 3 additions and 3 deletions
|
@ -17,17 +17,17 @@ import typing
|
|||
from bar import Bar
|
||||
|
||||
class Foo(Bar):
|
||||
def foo() -> str:
|
||||
def foo() -> object:
|
||||
return "foo"
|
||||
|
||||
@typing.override
|
||||
def bar() -> str:
|
||||
def bar() -> object:
|
||||
return "foo_bar"
|
||||
"#;
|
||||
|
||||
static BAR_CODE: &str = r#"
|
||||
class Bar:
|
||||
def bar() -> str:
|
||||
def bar() -> object:
|
||||
return "bar"
|
||||
|
||||
def random(arg: int) -> int:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue