Skip to content

Commit

Permalink
fix typing that wasn't available in Python 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed May 18, 2021
1 parent 78cfcf5 commit 1913ee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/markupsafe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1913ee4

Please sign in to comment.