📝 Fix `Sequence[SyncAuth | AsyncAuth]` to be `Sequence[SyncAuth] | Sequence[AsyncAuth]` (#408)
I've made a mistake in
modify and validate typing:django-modern-rest/django_modern_rest/endpoint.py
Line 411 in 65d7638
I used
Sequence[SyncAuth | AsyncAuth] instead of Sequence[SyncAuth] | Sequence[AsyncAuth].Here's the difference: https://mypy-play.net/?mypy=latest&python=3.12&flags=strict&gist=487fad8c5bdaa2e7d2b4e84a3fa25a6d
We need to fix the typings of
@modify and @validate and add a typesafety/ test that providing both sync and async auth at the same time is a type error.This issue is created for people who make their first (!) contribution :)
Please, let them feel welcome!
#bug #good_first_issue #help_wanted #django_modern_rest
sent via relator