Skip to content

Commit

Permalink
Support Annotated at Python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDing committed Dec 4, 2023
1 parent fd940c7 commit 33489db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion alipcs_py/commands/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
from typing import Optional, Dict, Annotated, Any
import sys

if sys.version_info > (3, 8):
from typing import Annotated
else:
from typing_extensions import Annotated

from typing import Optional, Dict, Any

from pathlib import Path
import os
import mimetypes
Expand Down

0 comments on commit 33489db

Please sign in to comment.