Skip to content

Commit

Permalink
Fix literal import for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Oct 29, 2021
1 parent d727115 commit 0a02a5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mp_api/routes/_general_store/models.py
@@ -1,5 +1,10 @@
from pydantic import BaseModel, Field
from typing import Dict, Literal
from typing import Dict

try:
from typing import Literal # type: ignore
except ImportError:
from typing_extensions import Literal
from datetime import datetime


Expand Down

0 comments on commit 0a02a5b

Please sign in to comment.