Skip to content

Commit 061b833

Browse files
committed
Vendor: bump attrs to version 22.1.0
See also issue #5449 - Fix Python 3.11 compat.
1 parent 45ed844 commit 061b833

22 files changed

+669
-1778
lines changed

pipenv/vendor/attr/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Hynek Schlawack
3+
Copyright (c) 2015 Hynek Schlawack and the attrs contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pipenv/vendor/attr/__init__.py

Lines changed: 41 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,70 @@
1-
from __future__ import absolute_import, division, print_function
1+
# SPDX-License-Identifier: MIT
22

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 (
124
NOTHING,
135
Attribute,
146
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,
1722
fields,
1823
fields_dict,
24+
frozen,
25+
has,
1926
make_class,
27+
mutable,
28+
resolve_types,
2029
validate,
2130
)
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-
__email__ = "[email protected]"
36-
37-
__license__ = "MIT"
38-
__copyright__ = "Copyright (c) 2015 Hynek Schlawack"
31+
from pipenv.vendor.attr._next_gen import asdict, astuple
3932

33+
from . import converters, exceptions, filters, setters, validators
4034

41-
s = attributes = attrs
42-
ib = attr = attrib
43-
dataclass = partial(attrs, auto_attribs=True) # happy Easter ;)
4435

4536
__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__",
4947
"asdict",
5048
"assoc",
5149
"astuple",
52-
"attr",
53-
"attrib",
54-
"attributes",
55-
"attrs",
50+
"Attribute",
5651
"cmp_using",
5752
"converters",
53+
"define",
5854
"evolve",
5955
"exceptions",
60-
"fields",
56+
"Factory",
57+
"field",
6158
"fields_dict",
59+
"fields",
6260
"filters",
63-
"get_run_validators",
61+
"frozen",
6462
"has",
65-
"ib",
6663
"make_class",
64+
"mutable",
65+
"NOTHING",
6766
"resolve_types",
68-
"s",
69-
"set_run_validators",
7067
"setters",
7168
"validate",
7269
"validators",
7370
]
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

Comments
 (0)