diff --git a/0001-Fix-type-docstring.patch b/0001-Fix-type-docstring.patch new file mode 100644 index 0000000..cf5d055 --- /dev/null +++ b/0001-Fix-type-docstring.patch @@ -0,0 +1,26 @@ +From 6b73e8e01564ca60f4c6d8c79d7e5904bef52163 Mon Sep 17 00:00:00 2001 +From: Hynek Schlawack +Date: Wed, 28 Sep 2022 09:25:16 +0200 +Subject: [PATCH] Fix type docstring + +Fixes #1031 +--- + src/attr/validators.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/attr/validators.py b/src/attr/validators.py +index f1f6f24..852ae96 100644 +--- a/src/attr/validators.py ++++ b/src/attr/validators.py +@@ -128,7 +128,7 @@ def instance_of(type): + `isinstance` therefore it's also valid to pass a tuple of types). + + :param type: The type to check for. +- :type type: type or tuple of types ++ :type type: type or tuple of type + + :raises TypeError: With a human readable error message, the attribute + (of type `attrs.Attribute`), the expected type, and the value it +-- +2.33.0 + diff --git a/python-attrs.spec b/python-attrs.spec index e20cd7f..364690b 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -9,13 +9,14 @@ object protocols. \ Name: python-attrs Summary: Python attributes without boilerplate Version: 22.1.0 -Release: 3 +Release: 4 License: MIT URL: http://www.attrs.org/ Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz Patch0: 0001-Update-.gitignore.patch Patch1: 0001-Fix-typo.patch +Patch2: 0001-Fix-type-docstring.patch BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-devel @@ -60,6 +61,9 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v %doc AUTHORS.rst README.rst %changelog +* Fri Jan 13 2023 caofei - 22.1.0-4 +- Fix type docstring + * Mon Jan 9 2023 caofei - 22.1.0-3 - Fix typo