[hotfix] Fix the type loss issue in the deserialization of ResourceProvider
Purpose of change
Fix the type loss issue in the deserialization of ResourceProvider and correct the improper use of the descriptor.
Tests
ut
API
Documentation
The commit already includes the changes to the Docs.
- [ ]
doc-needed - [x]
doc-not-needed
Hi, @Sxnan and @wenjin272, please take a look at this PR. Thank you.
What result will the type loss cause?
What result will the type loss cause?
Currently, it does not affect user usage because a forced type conversion has been performed on the Python side through the BaseModel. However, to support cross-language features, we need to address this issue first.
LGTM
Hi @Sxnan, thank you for the review! I have updated this PR; please review it again.