Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/functional/i/iterable_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,10 @@ def __getattr__(self, attr):

# Regression test for https://github.com/pylint-dev/pylint/issues/6372
string_twos = "".join(str(*y) for _, *y in [[1, 2], [1, 2]])

# Regression test for https://github.com/pylint-dev/pylint/issues/9729
class Model:
field: list[int] | None = None

def method(self):
return [f + 1 for f in self.field] if self.field else None
8 changes: 8 additions & 0 deletions tests/functional/n/no/no_member_exception_group.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Indirect tests that ExceptionGroup is inferred."""

try:
ex_list = [ValueError("a"), ValueError("b"), Exception("c")]
raise ExceptionGroup("exceptions!", ex_list)
except* ValueError as exc:
assert exc.exceptions
assert exc.message
2 changes: 2 additions & 0 deletions tests/functional/n/no/no_member_exception_group.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[testoptions]
min_pyver=3.11
Loading