Skip to content

[Python] Is there only way to use TypeVar? #3725

@ruoruoniao

Description

@ruoruoniao

Feature Request

Now in fory annotation we only have annotations like Int8 = TypeVar('Int8', bound=int), is there some other way to solve the warning when using dataclass_json:

UserWarning: Unknown type ~Float64 at Vector4d.x: ~Float64 It's advised to pass the correct marshmallow type to `mm_field`.

Also, IDE will unhappy when we use TypeVar as a property annotation...

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions