Fix wrong parameters, removing unused variables, fixing wrong types in properties
Polymorphic return type hints [ci skip]