>a trope that typically applies to males is applied to a female character, or the other way around (Gender-Inverted Trope)
If the trope is "basement dwelling male nerd = good hacker" then they're inverting it and making the female a good hacker.
If the trope is "basement dwelling male nerd = good hacker" then they're inverting it and making the female a good hacker.
(Which is fine, of course. But let's not kid ourselves that we're breaking media stereotypes that were gone years ago.)