diff --git a/CHANGES.rst b/CHANGES.rst index bb9c456c..55153c55 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 e9241ac3..7e2e7212 100644 --- a/src/markupsafe/__init__.py +++ b/src/markupsafe/__init__.py @@ -4,8 +4,9 @@ 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