tumblrbot 1.1.3__tar.gz → 1.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tumblrbot
3
- Version: 1.1.3
3
+ Version: 1.1.5
4
4
  Summary: An updated bot that posts to Tumblr, based on your very own blog!
5
5
  Requires-Python: >= 3.13
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tumblrbot"
3
- version = "1.1.3"
3
+ version = "1.1.5"
4
4
  description = "An updated bot that posts to Tumblr, based on your very own blog!"
5
5
  readme = "README.md"
6
6
  requires-python = ">= 3.13"
@@ -1,7 +1,7 @@
1
- from typing import Any, Literal, override
1
+ from typing import Annotated, Any, Literal, override
2
2
 
3
3
  from openai import BaseModel
4
- from pydantic import ConfigDict
4
+ from pydantic import ConfigDict, PlainSerializer
5
5
  from pydantic.json_schema import SkipJsonSchema
6
6
  from rich.panel import Panel
7
7
 
@@ -23,7 +23,7 @@ class Post(FullyValidatedModel):
23
23
  blocks: list[int] = [] # noqa: RUF012
24
24
 
25
25
  timestamp: SkipJsonSchema[int] = 0
26
- tags: list[str] = [] # noqa: RUF012
26
+ tags: Annotated[SkipJsonSchema[list[str]], PlainSerializer(",".join)] = [] # noqa: RUF012
27
27
  state: SkipJsonSchema[Literal["published", "queued", "draft", "private", "unapproved"]] = "published"
28
28
 
29
29
  content: SkipJsonSchema[list[Block]] = [] # noqa: RUF012
File without changes
File without changes
File without changes