Skip to content

Commit

Permalink
Fix typo in docs. (#21797)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjyw authored Dec 24, 2024
1 parent 7ca201b commit d62a605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ This rename was to avoid ambiguity with the new "environments" mechanism, which

### `MockGet` expects `input_types` kwarg, not `input_type`

It's now possible in Pants 2.15 to use zero arguments or multiple arguments in a `Get`. To support this change, `MockGet` from `run_run_with_mocks()` now expects the kwarg `input_types: tuple[type, ...]` rather than `input_type: type`.
It's now possible in Pants 2.15 to use zero arguments or multiple arguments in a `Get`. To support this change, `MockGet` from `run_rule_with_mocks()` now expects the kwarg `input_types: tuple[type, ...]` rather than `input_type: type`.

Before:

Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/core/util_rules/environments_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def get_names(v: Sequence[str]) -> EnvironmentName:


def test_resolve_environment_name_local_and_docker_fallbacks(monkeypatch) -> None:
# We can't monkeypatch the Platform with RuleRunner, so instead use run_run_with_mocks.
# We can't monkeypatch the Platform with RuleRunner, so instead use run_rule_with_mocks.
def get_env_name(
env_tgt: Target, platform: Platform, *, docker_execution: bool = True
) -> str | None:
Expand Down

0 comments on commit d62a605

Please sign in to comment.