In networkx 3.2.1, general_k_edge_subgraphs return type in docstring says this:
k_edge_subgraphs : a generator of nx.Graphs that are k-edge-subgraphs
Each k-edge-subgraph is a maximal set of nodes that defines a subgraph
of G that is k-edge-connected.
However, it actually yields (not returns) graphs, not sets of nodes.