Skip to content

Types for autocomplete and other features. #27

@adminy

Description

@adminy

Is your feature request related to a problem? Please describe.

I usually have a json which I convert to a DotWiz class for the dot notation, but since its a class, it would be nice to create a temporary / Dummy or Provided name for a type. So that I can do type(DotWiz(my_dict, 'SomeType')) and this could give me the type exactly as what I have currently in my dict.

Describe the solution you'd like

I get back a types for the DotWiz object which knows what attributes exist and which ones do not, because it knows of what type it is.

Describe alternatives you've considered

None

Additional context

I'm trying to generate the types for the dump return in a Marshmallow Schema. currently that is just DotWiz(MySchema().dump(event))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions