Skip to content

Enable Python pattern matching for core types#9

Merged
minamorl merged 1 commit intomainfrom
codex/add-pattern-matching-support-for-core-types
Aug 22, 2025
Merged

Enable Python pattern matching for core types#9
minamorl merged 1 commit intomainfrom
codex/add-pattern-matching-support-for-core-types

Conversation

@minamorl
Copy link
Copy Markdown
Owner

Summary

  • expose __match_args__ for Ok/Err, Maybe, Either and Writer
  • add read-only aliases for Maybe.value and Left.error
  • document and test structural pattern matching examples

Testing

  • PYTHONPATH=. pytest -v --cov=darkcore
  • mypy --strict darkcore

https://chatgpt.com/codex/tasks/task_e_68a8c9fdf6e8832fbf82e8c8db0e180f

@minamorl minamorl merged commit fcf7e0d into main Aug 22, 2025
2 checks passed
@minamorl minamorl deleted the codex/add-pattern-matching-support-for-core-types branch August 22, 2025 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant