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

set autofields=True by default when a class has no constructor #42

Open
smarie opened this issue Sep 22, 2020 · 1 comment
Open

set autofields=True by default when a class has no constructor #42

smarie opened this issue Sep 22, 2020 · 1 comment

Comments

@smarie
Copy link
Owner

smarie commented Sep 22, 2020

#41 made it clear that a better default value for autofields could be provided when there are no other indications of fields anywhere (no explicit constructor, etc.)

@smarie
Copy link
Owner Author

smarie commented Sep 22, 2020

However this kind of "intelligence" may be overkill. Why not instead have an @autoclass decorator in pyfields, using the internal autoclass API ? that would be easier and simpler to understand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant