Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update signatures and annotations #400

Merged
merged 5 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Unreleased
- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.
:pr:`348`
- Change ``distutils`` imports to ``setuptools``. :pr:`399`
- Use deferred evaluation of annotations. :pr:`400`
- Update signatures for ``Markup`` methods to match ``str`` signatures. Use
positional-only arguments. :pr:`400`


Version 2.1.3
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ source = ["src", "*/site-packages"]

[tool.mypy]
python_version = "3.8"
files = ["src/markupsafe"]
files = ["src/markupsafe", "tests"]
show_error_codes = true
pretty = true
strict = true
local_partial_types = true
warn_unreachable = true

[tool.pyright]
pythonVersion = "3.8"
include = ["src/markupsafe", "tests"]
typeCheckingMode = "basic"
2 changes: 0 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ filelock==3.12.3
# virtualenv
identify==2.5.27
# via pre-commit
nodeenv==1.8.0
# via pre-commit
pip-compile-multi==2.6.3
# via -r requirements/dev.in
pip-tools==7.3.0
Expand Down
2 changes: 2 additions & 0 deletions requirements/typing.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
mypy
pyright
pytest
17 changes: 16 additions & 1 deletion requirements/typing.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# SHA1:7983aaa01d64547827c20395d77e248c41b2572f
# SHA1:56a0ce21228a30a3076f16291ca773ce48ffcb2c
#
# This file is autogenerated by pip-compile-multi
# To update, run:
#
# pip-compile-multi
#
iniconfig==2.0.0
# via pytest
mypy==1.5.1
# via -r requirements/typing.in
mypy-extensions==1.0.0
# via mypy
nodeenv==1.8.0
# via pyright
packaging==23.1
# via pytest
pluggy==1.3.0
# via pytest
pyright==1.1.326
# via -r requirements/typing.in
pytest==7.4.1
# via -r requirements/typing.in
typing-extensions==4.7.1
# via mypy

# The following packages are considered to be unsafe in a requirements file:
# setuptools
Loading