Python: Port WrongNameForArgumentInClassInstantiation.ql

This commit is contained in:
Taus
2026-02-23 13:36:31 +00:00
parent 6c56882a75
commit 0094271966
3 changed files with 36 additions and 8 deletions

View File

@@ -2111,4 +2111,10 @@ module DuckTyping {
)
)
}
/**
* Gets the `__init__` function that will be invoked when `cls` is constructed,
* resolved according to the MRO.
*/
Function getInit(Class cls) { result = invokedFunctionFromClassConstruction(cls, "__init__") }
}