Skip to content

Commit

Permalink
mark top-level names as exported
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed May 18, 2021
1 parent 4f54e0e commit 78cfcf5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Version 2.0.1

Unreleased

- Mark top-level names as exported so type checking understands
imports in user projects. :issue:`215`


Version 2.0.0
-------------
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ disallow_untyped_defs = True
disallow_incomplete_defs = True
no_implicit_optional = True
local_partial_types = True
# no_implicit_reexport = True
no_implicit_reexport = True
strict_equality = True
warn_redundant_casts = True
warn_unused_configs = True
Expand Down
12 changes: 6 additions & 6 deletions src/markupsafe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ def __float__(self) -> float:

# circular import
try:
from ._speedups import escape
from ._speedups import escape_silent
from ._speedups import soft_str
from ._speedups import escape as escape
from ._speedups import escape_silent as escape_silent
from ._speedups import soft_str as soft_str
from ._speedups import soft_unicode
except ImportError:
from ._native import escape
from ._native import escape_silent # noqa: F401
from ._native import soft_str # noqa: F401
from ._native import escape as escape
from ._native import escape_silent as escape_silent # noqa: F401
from ._native import soft_str as soft_str # noqa: F401
from ._native import soft_unicode # noqa: F401

0 comments on commit 78cfcf5

Please sign in to comment.