2015-01-29 11:20:17 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
|
|
|
|
|
|
|
def simple_attr(name):
|
|
|
|
"""
|
|
|
|
Return an attribute with a name and no other bells and whistles.
|
|
|
|
"""
|
|
|
|
from attr import Attribute
|
|
|
|
from attr._dunders import NOTHING
|
|
|
|
return Attribute(name=name, default_value=NOTHING, default_factory=NOTHING,
|
|
|
|
validator=None)
|