You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/ql/src/Classes/InitCallsSubclass/InitCallsSubclassMethod.qhelp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ is mentioned in the documentation.
30
30
</recommendation>
31
31
<example>
32
32
<p>In the following case, the <code>__init__</code> method of <code>Super</code> calls the <code>set_up</code> method that is overridden by <code>Sub</code>.
33
-
This results in `Sun.set_up` being called with a partially initialized instance of `Super` which may be unexpected. </p>
33
+
This results in <code>Sub.set_up</code> being called with a partially initialized instance of <code>Super</code> which may be unexpected. </p>
Copy file name to clipboardExpand all lines: python/ql/test/query-tests/Classes/init-calls-subclass-method/init_calls_subclass.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ def good3():
48
48
classSuper:
49
49
def__init__(self, arg):
50
50
self.a=arg
51
-
self.set_b() # OK: Here `set_b` is used for initialisation, but does not read the partialy initialized state of `self`.
51
+
self.set_b() # OK: Here `set_b` is used for initialization, but does not read the partially initialized state of `self`.
52
52
self.c=1
53
53
54
54
defset_b(self):
@@ -63,7 +63,7 @@ class Super:
63
63
def__init__(self, arg):
64
64
self.a=arg
65
65
# OK: Here `_set_b` is likely an internal method (as indicated by the _ prefix).
66
-
# We assume thus that regular consumers of the library will not override it, and classes that do are internal and account for `self`'s partially initialised state.
66
+
# We assume thus that regular consumers of the library will not override it, and classes that do are internal and account for `self`'s partially initialized state.
0 commit comments