Skip to content

Conversation

@akx
Copy link
Owner

@akx akx commented Apr 29, 2025

No description provided.

@akx akx requested a review from Copilot April 29, 2025 08:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces type stubs and adjusts function return types in the storage module, along with adding tests to cover irregular types.

  • Updated test cases in tests/test_talsi.py to include a new scenario for irregular types.
  • Revised function signatures in src/storage.rs (including ensure_namespace_table and internal_insert) to return counts instead of unit values.
  • Minor import statement adjustments in src/typ.rs and type stubs added in python/talsi/_talsi.pyi to support the new return types and type definitions.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

File Description
tests/test_talsi.py Added tests for irregular types and a TODO comment regarding generator support.
src/typ.rs Adjusted the ordering of imports for consistency.
src/storage.rs Updated function signatures and return types from unit to usize in key methods.
python/talsi/_talsi.pyi Added type stubs corresponding to the public API changes, ensuring alignment with the code.

@akx akx merged commit 7175a57 into master Apr 29, 2025
8 checks passed
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.

2 participants