Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types for autocomplete and other features. #27

Open
adminy opened this issue Apr 3, 2023 · 0 comments
Open

Types for autocomplete and other features. #27

adminy opened this issue Apr 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@adminy
Copy link

adminy commented Apr 3, 2023

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))

@adminy adminy added the enhancement New feature or request label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant