diff --git a/docs/docs/writing-plugins/common-plugin-tasks/plugin-upgrade-guide.mdx b/docs/docs/writing-plugins/common-plugin-tasks/plugin-upgrade-guide.mdx index bbafe2e00ce..73c07f9cca1 100644 --- a/docs/docs/writing-plugins/common-plugin-tasks/plugin-upgrade-guide.mdx +++ b/docs/docs/writing-plugins/common-plugin-tasks/plugin-upgrade-guide.mdx @@ -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: diff --git a/src/python/pants/core/util_rules/environments_test.py b/src/python/pants/core/util_rules/environments_test.py index 3f66da68260..46eaeeef239 100644 --- a/src/python/pants/core/util_rules/environments_test.py +++ b/src/python/pants/core/util_rules/environments_test.py @@ -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: