summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-05-18 08:38:53 -0700
committerDavid Lord <davidism@gmail.com>2021-05-18 08:38:53 -0700
commit1913ee4aa6be6dce7b47d65d8c0c098e8a4c7bd0 (patch)
treefaf698ef11ce2099b9965d413cd2cea8ae0d0457
parent78cfcf5209bf70748c26af987e71268019d9c450 (diff)
downloadmarkupsafe-1913ee4aa6be6dce7b47d65d8c0c098e8a4c7bd0.tar.gz
fix typing that wasn't available in Python 3.6.0
-rw-r--r--CHANGES.rst3
-rw-r--r--src/markupsafe/__init__.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index bb9c456..55153c5 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,7 +4,8 @@ Version 2.0.1
Unreleased
- Mark top-level names as exported so type checking understands
- imports in user projects. :issue:`215`
+ imports in user projects. :pr:`215`
+- Fix some types that weren't available in Python 3.6.0. :pr:`215`
Version 2.0.0
diff --git a/src/markupsafe/__init__.py b/src/markupsafe/__init__.py
index e9241ac..7e2e721 100644
--- a/src/markupsafe/__init__.py
+++ b/src/markupsafe/__init__.py
@@ -4,8 +4,9 @@ import string
import typing as t
if t.TYPE_CHECKING:
+ import typing_extensions as te
- class HasHTML(t.Protocol):
+ class HasHTML(te.Protocol):
def __html__(self) -> str:
pass