Skip to content

Fix return type annotations to use proper tuple[] syntax#21

Merged
merlimat merged 1 commit intooxia-db:mainfrom
merlimat:fix/quality-12-type-annotations
Apr 16, 2026
Merged

Fix return type annotations to use proper tuple[] syntax#21
merlimat merged 1 commit intooxia-db:mainfrom
merlimat:fix/quality-12-type-annotations

Conversation

@merlimat
Copy link
Copy Markdown
Contributor

Parenthesized tuples like -> (str, Version) are not valid type hints. Fixed to -> tuple[str, Version]. Also corrected value type from str to bytes in get/range_scan return types.

- (str, Version) -> tuple[str, Version]
- (str, str, Version) -> tuple[str, bytes, Version]
  (value is bytes, not str)
- Iterator[tuple[str, str, Version]] -> Iterator[tuple[str, bytes, Version]]
- (int, OxiaClientStub) -> tuple[int, OxiaClientStub]

Signed-off-by: Matteo Merli <mmerli@apache.org>
@merlimat merlimat merged commit 4654e16 into oxia-db:main Apr 16, 2026
6 checks passed
@merlimat merlimat deleted the fix/quality-12-type-annotations branch April 16, 2026 03:28
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.

1 participant