From ea143599831858c18c7a0067292465b1ec9e3df0 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Thu, 28 Oct 2021 20:39:53 -0700 Subject: [PATCH] 'default's default value is non null --- my/core/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my/core/source.py b/my/core/source.py index bcf4965..3f5f19e 100644 --- a/my/core/source.py +++ b/my/core/source.py @@ -22,8 +22,8 @@ _DEFUALT_ITR = () # tried to use decorator module but it really doesn't work well # with types and kw-arguments... :/ def import_source( + default: Iterable[T] = _DEFUALT_ITR, module_name: Optional[str] = None, - default: Optional[Iterable[T]] = _DEFUALT_ITR ) -> Callable[..., Callable[..., Iterator[T]]]: """ doesn't really play well with types, but is used to catch