Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add type resolution support for complex types #2440

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lemorage
Copy link
Contributor

Please describe the purpose of this pull request.
This pull request adds support for complex type annotations in the resolve_type function and expands the test suite to cover these new cases.

Improvements to type resolution:

Improvements to testing:

  • tests/test_ast_parsing.py: Added multiple test cases to ensure correct coercion of arguments with complex type annotations, including list[int], dict[str, int], nested types like list[dict[str, int]], and handling of unsupported complex annotations.

How to test
poetry run pytest tests/test_ast_parsing.py

Have you tested this PR?
20 test cases passed.

Related issues or PRs
resolves #2430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to coerce argument 'room_numbers' to list[int]: Unsupported annotation: list[int]
1 participant