1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Runnable KeyValueArgType.tokenize doctest

This commit is contained in:
Jakub Roztocil
2019-09-17 09:07:12 +02:00
parent 0df4db7bb4
commit 37fa67cd3c
2 changed files with 29 additions and 25 deletions

View File

@@ -140,7 +140,7 @@ def process_data_raw_json_embed_arg(arg: KeyValueArg) -> JSONType:
return value
def load_text_file(item) -> str:
def load_text_file(item: KeyValueArg) -> str:
path = item.value
try:
with open(os.path.expanduser(path), 'rb') as f: