def __init__(self, upper=0, lower=0, letters=0, digits=0, special=0, special_chars=None):
        """
        Initializes a new instance of `Complexity`.

        :param int upper: Number of uppercase letters that the str must have.
        :param int lower: Number of lowercase letters that the str must have.
        :param int letters: Number of letters that the str must have.
        :param int letters: Number of special characters that the str must have.
        :param str special_chars: List of special characters allowed.
        """
        self.upper = upper
        self.lower = lower
        self.letters = letters
        self.digits = digits
        self.special = special
        self.special_chars = special_chars or string.punctuation
def __init__ ( self , upper = 0 , lower = 0 , letters = 0 , digits = 0 , special = 0 , special_chars = None ) : self . upper = upper self . lower = lower self . letters = letters self . digits = digits self . special = special self . special_chars = special_chars or string . punctuation
Initializes a new instance of `Complexity`.

        :param int upper: Number of uppercase letters that the str must have.
        :param int lower: Number of lowercase letters that the str must have.
        :param int letters: Number of letters that the str must have.
        :param int letters: Number of special characters that the str must have.
        :param str special_chars: List of special characters allowed.