Skip to content

Conversation

doubledare704
Copy link

@doubledare704 doubledare704 commented Apr 3, 2025

  • Added support for bytes type in Typer by:
  • Creating a custom BytesParamType class in typer/main.py
  • Modifying the get_click_type function to handle bytes type
  • Created comprehensive tests:
    • Basic tests for bytes type in tests/test_bytes_type.py
    • Advanced tests for base64 and hex encoding/decoding in tests/test_bytes_encoding.py
  • Created example applications:
    • Simple bytes example in examples/bytes_type_example.py
    • Comprehensive encoding/decoding example in examples/bytes_encoding_example.py

Attempt to solve #536

@svlandeg svlandeg added the feature New feature, enhancement or request label Apr 4, 2025
@svlandeg svlandeg changed the title [Implementation] Support for bytes in Options and Arguments ✨ Support bytes in Options and Arguments Apr 4, 2025
@svlandeg
Copy link
Member

Thanks for the PR, appreciate the time and effort spent on writing tests as well!

We'll get this reviewed by the team and will get back to you 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature, enhancement or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants