Skip to content

Commit 1b5b249

Browse files
fixed: python Generator annotations
1 parent 4264b29 commit 1b5b249

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

python_coderunner/src/editor_service_for_coderunner/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, config_manager: TBasicConfigManager, editor: IEditor, file_in
1616
self._temp_files: List[str] = []
1717

1818
@contextmanager
19-
def get_file_for_run(self) -> Generator[str]:
19+
def get_file_for_run(self) -> Generator[str, None, None]:
2020
file_path_abs: str = self._editor.get_current_file_name()
2121

2222
if (

python_coderunner/tests/unit/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def fixture_project_info_extractor(request: pytest.FixtureRequest) -> IProjectIn
132132
@pytest.fixture
133133
def fixture_vim_project_info_extractor(
134134
fixture_file_info_extractor: IFileInfoExtractor,
135-
) -> Generator[IProjectInfoExtractor]:
135+
) -> Generator[IProjectInfoExtractor, None, None]:
136136
with tempfile.TemporaryDirectory() as temp_dir:
137137
extractor: TVimProjectInfoExtractor = TVimProjectInfoExtractor(fixture_file_info_extractor)
138138
with unittest.mock.patch.object(
@@ -149,7 +149,7 @@ def fixture_file_info_extractor(request: pytest.FixtureRequest) -> IFileInfoExtr
149149

150150

151151
@pytest.fixture
152-
def fixture_vim_file_info_extractor() -> Generator[IFileInfoExtractor]:
152+
def fixture_vim_file_info_extractor() -> Generator[IFileInfoExtractor, None, None]:
153153
extractor: TVimFileInfoExtractor = TVimFileInfoExtractor()
154154
ext_to_lang: Dict[str, str] = {
155155
".py": "python",

0 commit comments

Comments
 (0)