T
he `complement` method of vector subspaces is being renamed to `orthogonal_complement` (with deprecation) in PR
#39659. This is because the method returns the orthogonal complement (which is not always a complementary subspace). A genuine complementary subspace can now be obtained by calling `complement(orthogonal=False)`, and that will presumably become the default for this method after the deprecation period.
If there are any concerns about this, please post a comment at
PR #39659 or the corresponding issue #31487.