From cc867d810c821fc14f4d202e34d22530cdf9e1fc Mon Sep 17 00:00:00 2001 From: Natty Date: Tue, 24 Oct 2023 18:30:33 +0200 Subject: [PATCH] Object shape and doc fixes --- README.md | 2 ++ main.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b8e514..412c5bd 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ Install dependencies: Run as a CLI command: +*Please note the handle has to be in the format @user:instance.org` + ``` python main.py [-h] --tag TAG --token TOKEN --instance INSTANCE emoji_file [emoji_file ...] diff --git a/main.py b/main.py index 81e7fcf..78b43af 100644 --- a/main.py +++ b/main.py @@ -10,6 +10,7 @@ import dacite import aiohttp import typing import urllib.parse +from typing import Optional from dataclasses import dataclass from tqdm import tqdm @@ -30,7 +31,7 @@ class EmojiDef: @dataclass class PackMeta: display_name: str - usage: list[str] + usage: Optional[list[str]] @dataclass