Skip to content

Commit

Permalink
typing_extensions should be optional on Python 3.11 (#1198)
Browse files Browse the repository at this point in the history
typing_extensions should be optional
  • Loading branch information
ikonst committed Sep 30, 2023
1 parent d74a88b commit 5facc5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pynamodb/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
"""
PynamoDB exceptions
"""
import sys
from dataclasses import dataclass
from typing import Any
from typing import Dict
from typing import Iterable
from typing import List
from typing import Optional
from typing_extensions import Literal
if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal

import botocore.exceptions

Expand Down

0 comments on commit 5facc5d

Please sign in to comment.