fix: ExternalRunnerTestInfo.type matches constructor#1318
Conversation
I found a really funny thing in the ExternalRunnerTestInfo docs: the `type` field is shown as `.test_type`, not `.type` (!). This is because it *is* `.test_type` as a field and `type` in the constructor. This is super confusing, let's unify the field (that I doubt anyone accesses) with the constructor so the docs make more sense.
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D104869246. (Because this pull request was imported automatically, there will not be any future comments.) |
|
I have definitely experienced this issue before. 👍 |
Heh, grep in fbsource gives me 23 results. But also, |
news to me! that's unfortunate, and I agree this would be a flawed approach then.
Sounds great to me! |
I found a really funny thing in the ExternalRunnerTestInfo docs: the
typefield is shown as.test_type, not.type(!).This is because it is
.test_typeas a field andtypein the constructor. This is super confusing, let's unify the field (that I doubt anyone accesses) with the constructor so the docs make more sense.