Allow "self" and "parent" in type hint