Type infer __getattr__ on missing attribute