drop Python 3.6

This commit is contained in:
David Lord 2021-11-11 16:11:43 -08:00
parent 3c36d043e5
commit e609dddd60
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
9 changed files with 11 additions and 33 deletions

View file

@ -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