ruoruoniao opened a new issue, #3725:
URL: https://github.com/apache/fory/issues/3725
### Feature Request
Why we dont use `NewType` instead of `TypeVar` in `annotation.py`?
Like this:
```
Int8 = NewType("Int8", int)
UInt8 = NewType("UInt8", int)
Int16 = NewType("Int16", int)
UInt16 = NewType("UInt16", int)
Int32 = NewType("Int32", int)
UInt32 = NewType("UInt32", int)
FixedInt32 = NewType("FixedInt32", int)
FixedUInt32 = NewType("FixedUInt32", int)
Int64 = NewType("Int64", int)
UInt64 = NewType("UInt64", int)
FixedInt64 = NewType("FixedInt64", int)
TaggedInt64 = NewType("TaggedInt64", int)
FixedUInt64 = NewType("FixedUInt64", int)
TaggedUInt64 = NewType("TaggedUInt64", int)
Float16 = NewType("Float16", float)
BFloat16 = NewType("BFloat16", float)
Float32 = NewType("Float32", float)
Float64 = NewType("Float64", float)
```
It will make lint unhappy when the properties annotation is a
`TypeVar`...Also sometimes many warning print out when using `dataclass_json`...
### Is your feature request related to a problem? Please describe
_No response_
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]