Skip to content

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

@p-himik

Description

@p-himik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions