attrs/tests/__init__.py

13 lines
331 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._make import NOTHING
return Attribute(name=name, default=NOTHING, validator=None)