flaky
(1/2)
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(index: int, /) -> Pattern, (index: slice[int | None, int | None, int | None], /) -> Sequence[Pattern]]` cannot be called with key of type `None` on object of type `Sequence[Pattern]`
(1/2)
[error] unresolved-attribute - Attribute `pattern` is not defined on `Pattern` in union `Pattern | Unknown`