Tim Martin
a1334a70b9
Stricter return type annotations for template.Library ( #541 )
...
* Stricter return type annotations for template.Library
* Add some unit tests for the template library decorators
2021-01-20 23:11:02 +03:00
proxi
caaa23ab8f
convince mypy that user.is_staff (and friends) are booleans ( #542 )
...
closes #512
Co-authored-by: proxi <51172302+3n-k1@users.noreply.github.com >
2020-12-16 23:28:01 +03:00
Lysandros Nikolaou
d9c851abce
Do not force django.contrib.* dependencies ( #535 )
...
* Do not force django.contrib.* dependencies
Fixes #428 .
Fixes #534 .
* Add one more test with contenttypes installed, but auth not
2020-11-24 14:38:03 +03:00
proxy
aab8acf2ea
change get_user to use a protocol requiring a session ( #522 )
...
* change get_user to use a protocol requiring a session
define a "_HasSession" protocol, and update contrib.auth.get_user to use it
get_user only requires a session field, and idiomatic django testing frequently calls get_user with a TestClient
* run black
* use union for get_user instead of a protocol
* create tests for get_user typechecking
* properly import test client
2020-11-07 11:38:45 +03:00
proxy
f08b428027
make FormMixin generic to allow proper typing for LoginView ( #515 )
...
closes #514
2020-10-31 21:53:45 +03:00
Na'aman Hirschfeld
44151c485d
updated package setup ( #485 )
...
* updated package setup
* updated to use python 3.9
* fixed test runner
* fixed typecheck tests
* fixed discrepencies
* added override to runner
* updated travis
* updated pre-commit hooks
* updated dep
2020-10-29 11:59:48 +03:00