So I've seen this claim being made on different questions:
Do self-loops in DFA cause infinite languages?
I'd like to find formal proof for this.
I think I should also note that an "accepting path containing a cycle" is probably defined as a path in a graph so that the states in the DFA are nodes in the graph and there must be a cycle and at least one accepting state in that path.