Skip to content

fix: Detailed Types Validation Fix#37

Merged
AttAditya merged 2 commits into
mainfrom
fix/iterable-types
May 19, 2026
Merged

fix: Detailed Types Validation Fix#37
AttAditya merged 2 commits into
mainfrom
fix/iterable-types

Conversation

@AttAditya

@AttAditya AttAditya commented May 19, 2026

Copy link
Copy Markdown
Owner

LangEx 0.4.2

Release Summary

  • Update Type: Minor
  • Update Version: 0.4.2
  • Breaking Changes: No
  • Backwards Compatibility: NA
  • Target Issue: None

Changelog

  • Change 1
    • Add extensive type matching logic for collections and generics
    • Introduce _MatchResult and _MatchArgs for clear evaluation
    • Implement handlers: handle_none, handle_callable, handle_langex_class, handle_union_type, handle_type, handle_type_with_meta, handle_default
  • Change 2
    • Implement typed matching functions: match_typed_list, match_typed_set, match_typed_dict, match_typed_tuple
    • Support GenericAlias origins for templated types
  • Change 3
    • Add comprehensive test suite test_detailed_type_validation.py covering lists, sets, dicts, tuples with type annotations
    • Adjust error handler behaviors in test_err_handlers.py to ensure silent failure handling

Updated Library Highlights

No high‑level API changes; internal matcher logic expanded for robust generic and union support.

Future Plans

No plans to add.

Notes

No additional notes.

@github-actions

Copy link
Copy Markdown

🔍 Generating PR summary using AI for commit 00cea0f96ea94851a8fd96d34001c809116780ba...

@github-actions

Copy link
Copy Markdown

🏷️ Generating labels using AI for commit 00cea0f96ea94851a8fd96d34001c809116780ba...

@github-actions

Copy link
Copy Markdown

❌ Tests failed for commit 00cea0f96ea94851a8fd96d34001c809116780ba.

Tests completed for commit 00cea0f

Tests Results:
Passed: 51
Failed: 0
Errors: 1


Failed Tests:


Errors:
- <lambda> test_alias_validation.<locals>.<lambda> /home/runner/work/langex/langex/tests/functions/test_alias_validation.py:15: Langex Error (Validation)
Traceback:
  /home/runner/work/langex/langex/langex/testing/data.py 48
  /home/runner/work/langex/langex/tests/functions/test_alias_validation.py 15

Additional Information:
  target: func1
  reason: contradicting argument type
  argument type: list
  received type: list
  argument index: 0


f1: This will be printed
f2: This will be printed

@github-actions github-actions Bot added the TESTS Related to code tests label May 19, 2026
@github-actions

Copy link
Copy Markdown

🏷️ Labels added: TESTS (commit 00cea0f96ea94851a8fd96d34001c809116780ba)

@github-actions

Copy link
Copy Markdown

✅ PR summary updated using AI for commit 00cea0f96ea94851a8fd96d34001c809116780ba.

@AttAditya
AttAditya force-pushed the fix/iterable-types branch from 00cea0f to 4c786cd Compare May 19, 2026 13:10
@github-actions

Copy link
Copy Markdown

❌ Tests failed for commit 4c786cd2f3985e139e79083836dfb7a1f90e7f34.

Tests completed for commit 4c786cd

Tests Results:
Passed: 51
Failed: 0
Errors: 1


Failed Tests:


Errors:
- <lambda> test_alias_validation.<locals>.<lambda> /home/runner/work/langex/langex/tests/functions/test_alias_validation.py:15: Langex Error (Validation)
Traceback:
  /home/runner/work/langex/langex/langex/testing/data.py 48
  /home/runner/work/langex/langex/tests/functions/test_alias_validation.py 15

Additional Information:
  target: func1
  reason: contradicting argument type
  argument type: list
  received type: list
  argument index: 0

@AttAditya
AttAditya force-pushed the fix/iterable-types branch from 4c786cd to 5f2fd6a Compare May 19, 2026 13:13
@github-actions

Copy link
Copy Markdown

❌ Tests failed for commit 5f2fd6ae3517b946e3ba30e69c282856a608e51f.

Tests completed for commit 5f2fd6a

Tests Results:
Passed: 51
Failed: 0
Errors: 1


Failed Tests:


Errors:
- <lambda> test_alias_validation.<locals>.<lambda> /home/runner/work/langex/langex/tests/functions/test_alias_validation.py:15: Langex Error (Validation)
Traceback:
  /home/runner/work/langex/langex/langex/testing/data.py 48
  /home/runner/work/langex/langex/tests/functions/test_alias_validation.py 15

Additional Information:
  target: func1
  reason: contradicting argument type
  argument type: list
  received type: list
  argument index: 0

@AttAditya AttAditya changed the title fix: General Aliases Type Validation Fix fix: Detailed Types Validation Fix May 19, 2026
@AttAditya

Copy link
Copy Markdown
Owner Author

/ci tag

@github-actions

Copy link
Copy Markdown

🏷️ Generating labels using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687...

@github-actions github-actions Bot added the FEAT New feature and functionality label May 19, 2026
@github-actions

Copy link
Copy Markdown

🏷️ Labels added: FEAT,TESTS (commit 64aefeadb0cfb882c2dbaad9327b23306340a687)

@AttAditya

Copy link
Copy Markdown
Owner Author

/ci summary

@github-actions

Copy link
Copy Markdown

🔍 Generating PR summary using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687...

@github-actions

Copy link
Copy Markdown

✅ PR summary updated using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687.

@github-actions

Copy link
Copy Markdown

🔍 Generating PR summary using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687...

@github-actions

Copy link
Copy Markdown

✅ PR summary updated using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687.

@AttAditya

Copy link
Copy Markdown
Owner Author

/ci summary

@github-actions

Copy link
Copy Markdown

🔍 Generating PR summary using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687...

@github-actions

Copy link
Copy Markdown

✅ PR summary updated using AI for commit 64aefeadb0cfb882c2dbaad9327b23306340a687.

@AttAditya
AttAditya merged commit c781239 into main May 19, 2026
3 checks passed
@AttAditya
AttAditya deleted the fix/iterable-types branch May 19, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT New feature and functionality TESTS Related to code tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant