Skip to content

Commit 71a6b22

Browse files
Update python/ql/src/Classes/SubclassShadowing/examples/SubclassShadowingBad.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1efc09b commit 71a6b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Classes/SubclassShadowing/examples/SubclassShadowingBad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class A:
22
def __init__(self):
33
self._foo = 3
44

5-
class B:
5+
class B(A):
66
# BAD: _foo is shadowed by attribute A._foo
77
def _foo(self):
88
return 2

0 commit comments

Comments
 (0)