attrs/tests/__init__.py

14 lines
372 B
Python

# -*- 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=NOTHING, factory=NOTHING,
validator=None)