Skip to content

Commit

Permalink
stay compatible to python 3.9...
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Aug 28, 2023
1 parent 46bd861 commit 62573d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cast/api/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Literal
from typing import Literal, Union

from rest_framework import serializers

Expand Down Expand Up @@ -48,7 +48,7 @@ class Meta:

FacetName = Literal["date_facets", "category_facets", "tag_facets"]
FacetValueName = Literal["slug", "name", "count"]
FacetList = list[dict[FacetValueName, str | int]]
FacetList = list[dict[FacetValueName, Union[str, int]]]
FacetCounts = dict[FacetName, FacetList]


Expand Down

0 comments on commit 62573d6

Please sign in to comment.