Skip to content

Commit

Permalink
Fix toml type errors with new Pyright versions
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Dec 28, 2023
1 parent 799e1ef commit 3731f2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hexdoc/utils/deserialize/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

# TODO: there's (figuratively) literally no comments in this file

TOMLDict = dict[str, "TOMLValue"]

TOMLValue = (
str
| int
Expand All @@ -19,10 +17,12 @@
| datetime.date
| datetime.time
| list["TOMLValue"]
| TOMLDict
| dict[str, "TOMLValue"]
| None
)

TOMLDict = dict[str, "TOMLValue"]


def fill_placeholders(data: TOMLDict):
_fill_placeholders(data, [data], set())
Expand Down

0 comments on commit 3731f2f

Please sign in to comment.