You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add basepython entries for pypy. This fixes running tox locally.
* Fix the cpython version mapping in [gh-actions]. The github action
tests for cpython versions are running against the latest Django,
instead of the set of possible Django versions.
* Add mypy for type checking
* Handle case where config is None
* Use getattr, setattr for dynamic attribute access
- mypy complains when reading or setting a attribute that is not defined
on the class, such as HttpRequest.csp_nonce. This updates the code to
use getattr and setattr to access these dynamically added attributes and
for Django settings.
* Use tuples where requested
- Both startswith() and parser.parse_statements take a tuple rather than a list.
* Add type hints
* Refactor ScriptTestBase
- Althought the code `template.render(context)` looked similar, mypy
complained that Django's Template could not take a dict. Rather than
switch on types, refactor `make_context` and `make_template` into
`render`, which hides the typing details between Django templates and
extension templates like Jinja2.
* Fix Sphinx doc generation without setuptools
* Add `pip install -e ".[dev]"`
* Update docs for typing, etc.
* Add PEP 561 py.typed file
* Bump Django dependency to 4.2+
* Replace `HttpResponse` type with `HttpResponseBase`
* Update CHANGES file
---------
Co-authored-by: Rob Hudson <[email protected]>
0 commit comments