diff options
author | Matt Tuchfarber <matt@tuchfarber.com> | 2021-02-18 00:41:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 06:41:51 +0100 |
commit | 78335e9b49eff2eaf2dc31d0bcc3caa0169cfc60 (patch) | |
tree | 7c5c4645fab7a1e9ac9d8a0935c3241e7468e9f1 | |
parent | c2712fd102ddfb7df6df333f421c3b21c18e4b37 (diff) | |
download | attrs-78335e9b49eff2eaf2dc31d0bcc3caa0169cfc60.tar.gz |
doc: fix typo in default_if_none doc (#762)
-rw-r--r-- | src/attr/converters.py | 2 |
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. |