aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-12-04 09:30:01 +0800
committerGravatar ionite34 <[email protected]>2022-12-04 09:30:01 +0800
commit8756c60ae8e4c58e1c39b798c94a9894a6ee5a37 (patch)
tree623455cac6f658c81911534c72cb0e84a7c205d8
parentUpdate `files_list` docstring (diff)
Fix as_dict type hint
-rw-r--r--snekbox/snekio.py2
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 {