diff options
author | 2022-12-04 09:30:01 +0800 | |
---|---|---|
committer | 2022-12-04 09:30:01 +0800 | |
commit | 8756c60ae8e4c58e1c39b798c94a9894a6ee5a37 (patch) | |
tree | 623455cac6f658c81911534c72cb0e84a7c205d8 | |
parent | Update `files_list` docstring (diff) |
Fix as_dict type hint
-rw-r--r-- | snekbox/snekio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/snekbox/snekio.py b/snekbox/snekio.py index f57d3b0..b5bd5a1 100644 --- a/snekbox/snekio.py +++ b/snekbox/snekio.py @@ -83,7 +83,7 @@ class FileAttachment: file.write_bytes(self.content) @cached_property - def as_dict(self) -> dict[str, str]: + def as_dict(self) -> dict[str, str | int]: """Convert the attachment to a dict.""" content = b64encode(self.content).decode("ascii") return { |