|
1 |
| -from __future__ import absolute_import, division, print_function |
| 1 | +# SPDX-License-Identifier: MIT |
2 | 2 |
|
3 |
| -import sys |
4 |
| - |
5 |
| -from functools import partial |
6 |
| - |
7 |
| -from . import converters, exceptions, filters, setters, validators |
8 |
| -from ._cmp import cmp_using |
9 |
| -from ._config import get_run_validators, set_run_validators |
10 |
| -from ._funcs import asdict, assoc, astuple, evolve, has, resolve_types |
11 |
| -from ._make import ( |
| 3 | +from pipenv.vendor.attr import ( |
12 | 4 | NOTHING,
|
13 | 5 | Attribute,
|
14 | 6 | Factory,
|
15 |
| - attrib, |
16 |
| - attrs, |
| 7 | + __author__, |
| 8 | + __copyright__, |
| 9 | + __description__, |
| 10 | + __doc__, |
| 11 | + __email__, |
| 12 | + __license__, |
| 13 | + __title__, |
| 14 | + __url__, |
| 15 | + __version__, |
| 16 | + __version_info__, |
| 17 | + assoc, |
| 18 | + cmp_using, |
| 19 | + define, |
| 20 | + evolve, |
| 21 | + field, |
17 | 22 | fields,
|
18 | 23 | fields_dict,
|
| 24 | + frozen, |
| 25 | + has, |
19 | 26 | make_class,
|
| 27 | + mutable, |
| 28 | + resolve_types, |
20 | 29 | validate,
|
21 | 30 | )
|
22 |
| -from ._version_info import VersionInfo |
23 |
| - |
24 |
| - |
25 |
| -__version__ = "21.2.0" |
26 |
| -__version_info__ = VersionInfo._from_version_string(__version__) |
27 |
| - |
28 |
| -__title__ = "attrs" |
29 |
| -__description__ = "Classes Without Boilerplate" |
30 |
| -__url__ = "https://www.attrs.org/" |
31 |
| -__uri__ = __url__ |
32 |
| -__doc__ = __description__ + " <" + __uri__ + ">" |
33 |
| - |
34 |
| -__author__ = "Hynek Schlawack" |
35 |
| - |
36 |
| - |
37 |
| -__license__ = "MIT" |
38 |
| -__copyright__ = "Copyright (c) 2015 Hynek Schlawack" |
| 31 | +from pipenv.vendor.attr._next_gen import asdict, astuple |
39 | 32 |
|
| 33 | +from . import converters, exceptions, filters, setters, validators |
40 | 34 |
|
41 |
| -s = attributes = attrs |
42 |
| -ib = attr = attrib |
43 |
| -dataclass = partial(attrs, auto_attribs=True) # happy Easter ;) |
44 | 35 |
|
45 | 36 | __all__ = [
|
46 |
| - "Attribute", |
47 |
| - "Factory", |
48 |
| - "NOTHING", |
| 37 | + "__author__", |
| 38 | + "__copyright__", |
| 39 | + "__description__", |
| 40 | + "__doc__", |
| 41 | + "__email__", |
| 42 | + "__license__", |
| 43 | + "__title__", |
| 44 | + "__url__", |
| 45 | + "__version__", |
| 46 | + "__version_info__", |
49 | 47 | "asdict",
|
50 | 48 | "assoc",
|
51 | 49 | "astuple",
|
52 |
| - "attr", |
53 |
| - "attrib", |
54 |
| - "attributes", |
55 |
| - "attrs", |
| 50 | + "Attribute", |
56 | 51 | "cmp_using",
|
57 | 52 | "converters",
|
| 53 | + "define", |
58 | 54 | "evolve",
|
59 | 55 | "exceptions",
|
60 |
| - "fields", |
| 56 | + "Factory", |
| 57 | + "field", |
61 | 58 | "fields_dict",
|
| 59 | + "fields", |
62 | 60 | "filters",
|
63 |
| - "get_run_validators", |
| 61 | + "frozen", |
64 | 62 | "has",
|
65 |
| - "ib", |
66 | 63 | "make_class",
|
| 64 | + "mutable", |
| 65 | + "NOTHING", |
67 | 66 | "resolve_types",
|
68 |
| - "s", |
69 |
| - "set_run_validators", |
70 | 67 | "setters",
|
71 | 68 | "validate",
|
72 | 69 | "validators",
|
73 | 70 | ]
|
74 |
| - |
75 |
| -if sys.version_info[:2] >= (3, 6): |
76 |
| - from ._next_gen import define, field, frozen, mutable |
77 |
| - |
78 |
| - __all__.extend((define, field, frozen, mutable)) |
0 commit comments