mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-04-27 01:00:27 +08:00
739b1711a9
Unlike `List`, which is invariant, `Sequence` is covariant, which lets `path` accept lists of subsets of the `Union` as well. I believe this is safe, as django doesn't mutate this input. I found [this comment](https://github.com/python/mypy/issues/3351#issuecomment-300447832) helpful