mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Update python/ql/src/Classes/SubclassShadowing/SubclassShadowing.qhelp
Co-authored-by: Taus <tausbn@github.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<qhelp>
|
<qhelp>
|
||||||
<overview>
|
<overview>
|
||||||
<p>
|
<p>
|
||||||
When an object has an attribute that shares the same name a method on the object's class (or another class attribute), the instance attribute is
|
When an object has an attribute that shares its name with a method on the object's class (or another class attribute), the instance attribute is
|
||||||
prioritized during attribute lookup, shadowing the method.
|
prioritized during attribute lookup, shadowing the method.
|
||||||
|
|
||||||
If a method on a subclass is shadowed by an attribute on a superclass in this way, this may lead to unexpected results or errors, as this
|
If a method on a subclass is shadowed by an attribute on a superclass in this way, this may lead to unexpected results or errors, as this
|
||||||
|
|||||||
Reference in New Issue
Block a user