<#18361 Rule visitor chokes on union types> Issue ...
# github-notifications
q
#18361 Rule visitor chokes on union types Issue created by kaos
Copy code
It doesn't work, you get:
Copy code
pants.base.exceptions.RuleTypeError: /Users/benjyw/src/pants/pants-plugins/internal_plugins/test_lockfile_fixtures/rules.py:85: Could not resolve type for `pytest.to_pex_request` in module internal_plugins.test_lockfile_fixtures.rules.

Return type annotation required for `to_pex_request` in /Users/benjyw/src/pants/src/python/pants/backend/python/subsystems/python_tool_base.py:276
Even though
to_pex_request
does have a return type annotation. _Originally posted by @happy-kitchen-89482 in #18350 (comment)_ pantsbuild/pants
u