Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71a6b22

Browse files
Update python/ql/src/Classes/SubclassShadowing/examples/SubclassShadowingBad.py
Co-authored-by: Copilot <[email protected]>
1 parent 1efc09b commit 71a6b22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)