diff options
author | morpheus65535 <[email protected]> | 2024-03-03 12:15:23 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-03 12:15:23 -0500 |
commit | 03afeb347075381bcb7fd6036295c9fa4a90d2dc (patch) | |
tree | 7c5d72c973d2c8e4ade57391a1c9ad5e94903a46 /libs/attrs | |
parent | 9ae684240b5bdd40a870d8122f0e380f8d03a187 (diff) | |
download | bazarr-03afeb347075381bcb7fd6036295c9fa4a90d2dc.tar.gz bazarr-03afeb347075381bcb7fd6036295c9fa4a90d2dc.zip |
Updated multiple Python modules (now in libs and custom_libs directories) and React libraries
Diffstat (limited to 'libs/attrs')
-rw-r--r-- | libs/attrs/__init__.py | 15 | ||||
-rw-r--r-- | libs/attrs/__init__.pyi | 5 | ||||
-rw-r--r-- | libs/attrs/converters.py | 2 | ||||
-rw-r--r-- | libs/attrs/exceptions.py | 2 | ||||
-rw-r--r-- | libs/attrs/filters.py | 2 | ||||
-rw-r--r-- | libs/attrs/setters.py | 2 | ||||
-rw-r--r-- | libs/attrs/validators.py | 2 |
7 files changed, 13 insertions, 17 deletions
diff --git a/libs/attrs/__init__.py b/libs/attrs/__init__.py index a704b8b56..0c2481561 100644 --- a/libs/attrs/__init__.py +++ b/libs/attrs/__init__.py @@ -3,17 +3,9 @@ from attr import ( NOTHING, Attribute, + AttrsInstance, Factory, - __author__, - __copyright__, - __description__, - __doc__, - __email__, - __license__, - __title__, - __url__, - __version__, - __version_info__, + _make_getattr, assoc, cmp_using, define, @@ -48,6 +40,7 @@ __all__ = [ "assoc", "astuple", "Attribute", + "AttrsInstance", "cmp_using", "converters", "define", @@ -68,3 +61,5 @@ __all__ = [ "validate", "validators", ] + +__getattr__ = _make_getattr(__name__) diff --git a/libs/attrs/__init__.pyi b/libs/attrs/__init__.pyi index fc44de46a..9372cfea1 100644 --- a/libs/attrs/__init__.pyi +++ b/libs/attrs/__init__.pyi @@ -23,6 +23,7 @@ from attr import __version_info__ as __version_info__ from attr import _FilterType from attr import assoc as assoc from attr import Attribute as Attribute +from attr import AttrsInstance as AttrsInstance from attr import cmp_using as cmp_using from attr import converters as converters from attr import define as define @@ -45,7 +46,7 @@ from attr import validators as validators # TODO: see definition of attr.asdict/astuple def asdict( - inst: Any, + inst: AttrsInstance, recurse: bool = ..., filter: Optional[_FilterType[Any]] = ..., dict_factory: Type[Mapping[Any, Any]] = ..., @@ -58,7 +59,7 @@ def asdict( # TODO: add support for returning NamedTuple from the mypy plugin def astuple( - inst: Any, + inst: AttrsInstance, recurse: bool = ..., filter: Optional[_FilterType[Any]] = ..., tuple_factory: Type[Sequence[Any]] = ..., diff --git a/libs/attrs/converters.py b/libs/attrs/converters.py index edfa8d3c1..7821f6c02 100644 --- a/libs/attrs/converters.py +++ b/libs/attrs/converters.py @@ -1,3 +1,3 @@ # SPDX-License-Identifier: MIT -from attr.converters import * # noqa +from attr.converters import * # noqa: F403 diff --git a/libs/attrs/exceptions.py b/libs/attrs/exceptions.py index bd9efed20..3323f9d21 100644 --- a/libs/attrs/exceptions.py +++ b/libs/attrs/exceptions.py @@ -1,3 +1,3 @@ # SPDX-License-Identifier: MIT -from attr.exceptions import * # noqa +from attr.exceptions import * # noqa: F403 diff --git a/libs/attrs/filters.py b/libs/attrs/filters.py index 52959005b..3080f4839 100644 --- a/libs/attrs/filters.py +++ b/libs/attrs/filters.py @@ -1,3 +1,3 @@ # SPDX-License-Identifier: MIT -from attr.filters import * # noqa +from attr.filters import * # noqa: F403 diff --git a/libs/attrs/setters.py b/libs/attrs/setters.py index 9b5077080..f3d73bb79 100644 --- a/libs/attrs/setters.py +++ b/libs/attrs/setters.py @@ -1,3 +1,3 @@ # SPDX-License-Identifier: MIT -from attr.setters import * # noqa +from attr.setters import * # noqa: F403 diff --git a/libs/attrs/validators.py b/libs/attrs/validators.py index ab2c9b302..037e124f2 100644 --- a/libs/attrs/validators.py +++ b/libs/attrs/validators.py @@ -1,3 +1,3 @@ # SPDX-License-Identifier: MIT -from attr.validators import * # noqa +from attr.validators import * # noqa: F403 |