'default's default value is non null
This commit is contained in:
parent
4492e00250
commit
ea14359983
1 changed files with 1 additions and 1 deletions
|
@ -22,8 +22,8 @@ _DEFUALT_ITR = ()
|
||||||
# tried to use decorator module but it really doesn't work well
|
# tried to use decorator module but it really doesn't work well
|
||||||
# with types and kw-arguments... :/
|
# with types and kw-arguments... :/
|
||||||
def import_source(
|
def import_source(
|
||||||
|
default: Iterable[T] = _DEFUALT_ITR,
|
||||||
module_name: Optional[str] = None,
|
module_name: Optional[str] = None,
|
||||||
default: Optional[Iterable[T]] = _DEFUALT_ITR
|
|
||||||
) -> Callable[..., Callable[..., Iterator[T]]]:
|
) -> Callable[..., Callable[..., Iterator[T]]]:
|
||||||
"""
|
"""
|
||||||
doesn't really play well with types, but is used to catch
|
doesn't really play well with types, but is used to catch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue