src/streamlink/plugin/api/validate.py
def getattr(attr, default=None):
    """Get a named attribute from an object.

    When a default argument is given, it is returned when the attribute
    doesn't exist.
    """
    def getter(value):
        return _getattr(value, attr, default)

    return transform(getter)
def getattr(attr, default=None):
    def getter(value):
        return _getattr(value, attr, default)

    return transform(getter)
def getattr ( attr , default = None ) : def getter ( value ) : return _getattr ( value , attr , default ) return transform ( getter )
Get a named attribute from an object.

    When a default argument is given, it is returned when the attribute
    doesn't exist.
Get a named attribute from an object .