Skip to content

Commit 24eaca2

Browse files
committed
Restore type ignore comments required by mypy for Prefect tasks
The type ignore comments are needed because mypy doesn't understand Prefect's @task decorator return type correctly.
1 parent ca57fc6 commit 24eaca2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backend/infrahub/git/integrator.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,21 @@ async def import_objects_from_files(
189189
error: Exception | None = None
190190

191191
try:
192-
config_file = await self.get_repository_config(branch_name=infrahub_branch_name, commit=commit)
193-
await self.import_schema_files(branch_name=infrahub_branch_name, commit=commit, config_file=config_file)
194-
await self.import_all_graphql_query(
192+
config_file = await self.get_repository_config(branch_name=infrahub_branch_name, commit=commit) # type: ignore[misc]
193+
await self.import_schema_files(branch_name=infrahub_branch_name, commit=commit, config_file=config_file) # type: ignore[misc]
194+
await self.import_all_graphql_query( # type: ignore[misc]
195195
branch_name=infrahub_branch_name, commit=commit, config_file=config_file
196196
)
197-
await self.import_objects(
197+
await self.import_objects( # type: ignore[misc]
198198
branch_name=infrahub_branch_name,
199199
commit=commit,
200200
config_file=config_file,
201201
)
202-
await self.import_all_python_files(branch_name=infrahub_branch_name, commit=commit, config_file=config_file)
203-
await self.import_jinja2_transforms(
202+
await self.import_all_python_files(branch_name=infrahub_branch_name, commit=commit, config_file=config_file) # type: ignore[misc, call-overload]
203+
await self.import_jinja2_transforms( # type: ignore[misc]
204204
branch_name=infrahub_branch_name, commit=commit, config_file=config_file
205205
)
206-
await self.import_artifact_definitions(
206+
await self.import_artifact_definitions( # type: ignore[misc]
207207
branch_name=infrahub_branch_name, commit=commit, config_file=config_file
208208
)
209209

0 commit comments

Comments
 (0)