mirror of
https://github.com/copier-org/copier.git
synced 2025-05-09 17:32:57 +00:00
Closing some typing gaps.
This commit is contained in:
parent
44a5215093
commit
2d19c70317
@ -33,7 +33,7 @@ STYLE_DANGER: List[int] = [Fore.RED, Style.BRIGHT]
|
|||||||
|
|
||||||
|
|
||||||
def printf(
|
def printf(
|
||||||
action: str, msg: str = "", style: List[int] = None, indent: int = 10
|
action: str, msg: str = "", style: Optional[List[int]] = None, indent: int = 10
|
||||||
) -> Optional[str]:
|
) -> Optional[str]:
|
||||||
action = action.rjust(indent, " ")
|
action = action.rjust(indent, " ")
|
||||||
if not style:
|
if not style:
|
||||||
@ -45,7 +45,7 @@ def printf(
|
|||||||
|
|
||||||
|
|
||||||
def printf_block(
|
def printf_block(
|
||||||
e,
|
e: Exception,
|
||||||
action: str,
|
action: str,
|
||||||
msg: str = "",
|
msg: str = "",
|
||||||
style: List[int] = STYLE_WARNING,
|
style: List[int] = STYLE_WARNING,
|
||||||
@ -60,7 +60,7 @@ def printf_block(
|
|||||||
print("-" * 42)
|
print("-" * 42)
|
||||||
|
|
||||||
|
|
||||||
no_value = object()
|
no_value: object = object()
|
||||||
|
|
||||||
|
|
||||||
def required(value: T, **kwargs: Any) -> T:
|
def required(value: T, **kwargs: Any) -> T:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user