We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eabe26 commit 042717cCopy full SHA for 042717c
tests/functional/u/unsubscriptable_object.py
@@ -32,3 +32,15 @@ class Dog(Animal[Identity]):
32
33
DOG = Dog(identity=Identity(name="Dog"))
34
print(DOG.identity["name"])
35
+
36
37
+# Regression test for https://github.com/pylint-dev/pylint/issues/9515
38
+class Parents(): # pylint: disable=missing-class-docstring, missing-function-docstring
39
+ name: str
40
+ age: int
41
+ children_name: typing.Optional[list[str]] = None
42
43
+ def get_first_children_name(self) -> typing.Optional[str]:
44
+ if self.children_name:
45
+ return self.children_name[0]
46
+ return None
0 commit comments