Skip to content

Conversation

@buckbanzai
Copy link
Contributor

Hiya,
Submitting this PR to add support for ArgValue being set to None, since it looks like the send_message functions have support for them, but they aren't listed as a supported type.

I can edit this to move it to only apply as a Union on the send_message functions if you'd prefer.

Thank you!

@attwad
Copy link
Owner

attwad commented Jul 28, 2025

I think you need a type here NoneType should work

@buckbanzai buckbanzai force-pushed the support-none-argvalue branch from 6f3323b to 0a61787 Compare August 26, 2025 14:33
@buckbanzai
Copy link
Contributor Author

Hiya, it's my understanding that using None this way is the preferred way to write a NoneType for Python 3.x: https://peps.python.org/pep-0484/#using-none, but happy to change it to a NoneType if you'd prefer.

I believe the previous lint checks and tests the runs failed due to some of the formatting issues that #189 solved

@attwad attwad merged commit edcec23 into attwad:main Aug 26, 2025
5 checks passed
@buckbanzai buckbanzai deleted the support-none-argvalue branch August 26, 2025 17:00
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