attrs/tests/__init__.py

14 lines
378 B
Python
Raw Normal View History

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
2015-01-29 21:29:37 +00:00
return Attribute(name=name, default_value=NOTHING, factory=NOTHING,
2015-01-29 11:20:17 +00:00
validator=None)