python-attrs/0001-Fix-type-docstring.patch

27 lines
822 B
Diff
Raw Normal View History

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