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

Post init hook is not run if validators are disabled #129

Closed
p-himik opened this issue Jan 5, 2017 · 0 comments
Closed

Post init hook is not run if validators are disabled #129

p-himik opened this issue Jan 5, 2017 · 0 comments
Milestone

Comments

@p-himik
Copy link
Contributor

p-himik commented Jan 5, 2017

Here's the __init__ code generated by attrs:

def __init__(self, name, loc):
    self.name = name
    self.loc = loc
    if _config._run_validators is False:
        return
    __attr_validator_name(self, __attr_name, self.name)
    __attr_validator_loc(self, __attr_loc, self.loc)
    self.__attrs_post_init__()
@hynek hynek modified the milestone: 17.0 Jan 6, 2017
@hynek hynek closed this as completed in 1481227 Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants