aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/attrs/attr/converters.pyi
diff options
context:
space:
mode:
authorzubchick <zubchick@yandex-team.ru>2022-02-10 16:48:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:22 +0300
commitdd8b8ab59eaee9938ca16f368506d69ef2509b74 (patch)
tree5c9577458a79ca3e1acff2fd150ca398031a66e7 /contrib/python/attrs/attr/converters.pyi
parent01fa2667d0e5e868b18424bc1906146e5ee340db (diff)
downloadydb-dd8b8ab59eaee9938ca16f368506d69ef2509b74.tar.gz
Restoring authorship annotation for <zubchick@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/attrs/attr/converters.pyi')
-rw-r--r--contrib/python/attrs/attr/converters.pyi12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/python/attrs/attr/converters.pyi b/contrib/python/attrs/attr/converters.pyi
index 84a57590b0..de4d63fac5 100644
--- a/contrib/python/attrs/attr/converters.pyi
+++ b/contrib/python/attrs/attr/converters.pyi
@@ -1,13 +1,13 @@
from typing import Callable, Optional, TypeVar, overload
-from . import _ConverterType
-
-
-_T = TypeVar("_T")
+from . import _ConverterType
+
+_T = TypeVar("_T")
+
def pipe(*validators: _ConverterType) -> _ConverterType: ...
def optional(converter: _ConverterType) -> _ConverterType: ...
-@overload
+@overload
def default_if_none(default: _T) -> _ConverterType: ...
-@overload
+@overload
def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType: ...