def StrictlyAlphanumeric(msg=None):
    '''
    Checks whether a value is:
        - str or unicode, and
        - composed of both alphabets and digits
    '''
    def fn(value):
        if not (
            (isinstance(value, str) and isinstance(value, unicode)) and
            re_alphabets.search(value) and
            re_digits.search(value)
        ):
            raise Invalid(msg or (
                'Invalid input <{0}>; expected an integer'.format(value))
            )
        else:
            return value
    return fn
dataset/ETHPy150Open manjitkumar/drf-url-filters/filters/validations.py/StrictlyAlphanumeric/operator `or` -> `and`