Object shape and doc fixes
This commit is contained in:
parent
8154ba8e0e
commit
cc867d810c
|
@ -14,6 +14,8 @@ Install dependencies:
|
||||||
|
|
||||||
Run as a CLI command:
|
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 ...]
|
python main.py [-h] --tag TAG --token TOKEN --instance INSTANCE emoji_file [emoji_file ...]
|
||||||
|
|
||||||
|
|
3
main.py
3
main.py
|
@ -10,6 +10,7 @@ import dacite
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import typing
|
import typing
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
from typing import Optional
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ class EmojiDef:
|
||||||
@dataclass
|
@dataclass
|
||||||
class PackMeta:
|
class PackMeta:
|
||||||
display_name: str
|
display_name: str
|
||||||
usage: list[str]
|
usage: Optional[list[str]]
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
Loading…
Reference in New Issue