Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove --python-version 3.7 references from tests #16848

Merged
merged 6 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions test-data/unit/check-async-await.test
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,6 @@ def bar() -> None:
[typing fixtures/typing-async.pyi]

[case testAsyncForOutsideCoroutine]
# flags: --python-version 3.7

async def g():
yield 0

Expand All @@ -841,8 +839,6 @@ async for x in g(): ... # E: "async for" outside async function
[typing fixtures/typing-async.pyi]

[case testAsyncWithOutsideCoroutine]
# flags: --python-version 3.7

class C:
async def __aenter__(self): pass
async def __aexit__(self, x, y, z): pass
Expand All @@ -858,7 +854,6 @@ async with C() as x: # E: "async with" outside async function
[typing fixtures/typing-async.pyi]

[case testAwaitMissingNote]
# flags: --python-version 3.7
from typing import Generic, TypeVar, Generator, Any, Awaitable, Type

class C:
Expand Down
1 change: 0 additions & 1 deletion test-data/unit/check-callable.test
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ else:
[builtins fixtures/callable.pyi]

[case testBuiltinsTypeAsCallable]
# flags: --python-version 3.7
from __future__ import annotations

reveal_type(type) # N: Revealed type is "def (x: Any) -> builtins.type"
Expand Down
1 change: 0 additions & 1 deletion test-data/unit/check-dataclass-transform.test
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Person('Jonh', 21, None) # E: Too many arguments for "Person"
[builtins fixtures/dataclasses.pyi]

[case testDataclassTransformIsFoundInTypingExtensions]
# flags: --python-version 3.7
from typing import Type
from typing_extensions import dataclass_transform

Expand Down
Loading
Loading