!34 Fix type docstring
From: @cao-fei8 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
ea068dc512
26
0001-Fix-type-docstring.patch
Normal file
26
0001-Fix-type-docstring.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 6b73e8e01564ca60f4c6d8c79d7e5904bef52163 Mon Sep 17 00:00:00 2001
|
||||
From: Hynek Schlawack <hs@ox.cx>
|
||||
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
|
||||
|
||||
@ -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 <caofei@xfusion.com> - 22.1.0-4
|
||||
- Fix type docstring
|
||||
|
||||
* Mon Jan 9 2023 caofei <caofei@xfusion.com> - 22.1.0-3
|
||||
- Fix typo
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user