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

Why is Dirent.required_fields empty? #77

Closed
ghost opened this issue Jan 21, 2020 · 1 comment
Closed

Why is Dirent.required_fields empty? #77

ghost opened this issue Jan 21, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Jan 21, 2020

Stepping through in a debugger reveals that required_fields is an empty set for Dirent even though evaluating set((k for k, v in self.fields.items() if v.required)) yields entry as expected. This is very bizarre.

Relates to #76

@ghost ghost added the bug Something isn't working label Jan 21, 2020
@ghost ghost self-assigned this Jan 21, 2020
@ghost
Copy link
Author

ghost commented Jan 21, 2020

Ahh figured it out! This is because of 8a8deee which is the correct thing to do, but we forgot that now the type information is incomplete when it is initialized. So we have to re run the init (the setup) once the type is completely constructed ...

@ghost ghost added this to the 2020.02.29 milestone Jan 21, 2020
@ghost ghost closed this as completed in 30a2d63 Jan 21, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants