Skip to content

Commit

Permalink
Cover tmt.steps.prepare.distgit with pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed May 28, 2024
1 parent 24d86c9 commit 7768275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ ignore = [
"tmt/steps/discover/*.py",
"tmt/steps/execute/*.py",
"tmt/steps/finish/*.py",
"tmt/steps/prepare/distgit.py",
"tmt/steps/prepare/feature.py",
"tmt/steps/prepare/__init__.py",
"tmt/steps/prepare/install.py",
Expand Down
6 changes: 4 additions & 2 deletions tmt/steps/prepare/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from tmt.utils import Command, Path, field, uniq

if TYPE_CHECKING:
import tmt.base
import tmt.steps.discover
import tmt.steps.prepare.install

PREPARE_WRAPPER_FILENAME = 'tmt-prepare-wrapper.sh'
Expand Down Expand Up @@ -258,8 +260,8 @@ def go(
# FIXME needs refactor of Prepare, tmt.base etc...
# doing quick & dirty injection of prepareinstalls
for guest in self.step.plan.provision.guests():
collected_requires = []
collected_recommends = []
collected_requires: list['tmt.base.DependencySimple'] = []
collected_recommends: list['tmt.base.DependencySimple'] = []
for test in self.step.plan.discover.tests(enabled=True):
if not test.enabled_on_guest(guest):
continue
Expand Down

0 comments on commit 7768275

Please sign in to comment.