summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Tuchfarber <matt@tuchfarber.com>2021-02-18 00:41:51 -0500
committerGitHub <noreply@github.com>2021-02-18 06:41:51 +0100
commit78335e9b49eff2eaf2dc31d0bcc3caa0169cfc60 (patch)
tree7c5c4645fab7a1e9ac9d8a0935c3241e7468e9f1
parentc2712fd102ddfb7df6df333f421c3b21c18e4b37 (diff)
downloadattrs-78335e9b49eff2eaf2dc31d0bcc3caa0169cfc60.tar.gz
doc: fix typo in default_if_none doc (#762)
-rw-r--r--src/attr/converters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr/converters.py b/src/attr/converters.py
index 9a32353..2777db6 100644
--- a/src/attr/converters.py
+++ b/src/attr/converters.py
@@ -67,7 +67,7 @@ def default_if_none(default=NOTHING, factory=None):
:param default: Value to be used if ``None`` is passed. Passing an instance
of `attr.Factory` is supported, however the ``takes_self`` option
is *not*.
- :param callable factory: A callable that takes not parameters whose result
+ :param callable factory: A callable that takes no parameters whose result
is used if ``None`` is passed.
:raises TypeError: If **neither** *default* or *factory* is passed.