-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations
Description
given
import pytest
from typing import Generator
@pytest.fixture()
def testme() -> Generator[int, None, None]:
a = 1
yield aafter running
ruff --isolated --select PT ruff_check.py --fix
im left with
import pytest
from typing import Generator
@pytest.fixture()
def testme() -> Generator[int, None, None]:
a = 1
return ainstead of
import pytest
from typing import Generator
@pytest.fixture()
def testme() -> int:
a = 1
return aReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations