drop Python 3.6
This commit is contained in:
parent
3c36d043e5
commit
e609dddd60
9 changed files with 11 additions and 33 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import dataclasses
|
||||
import decimal
|
||||
import io
|
||||
import json as _json
|
||||
|
|
@ -16,12 +17,6 @@ if t.TYPE_CHECKING:
|
|||
from ..app import Flask
|
||||
from ..wrappers import Response
|
||||
|
||||
try:
|
||||
import dataclasses
|
||||
except ImportError:
|
||||
# Python < 3.7
|
||||
dataclasses = None # type: ignore
|
||||
|
||||
|
||||
class JSONEncoder(_json.JSONEncoder):
|
||||
"""The default JSON encoder. Handles extra types compared to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue