I found that the implementation of CodeRefsTo() excludes all call type cross-references, which is inconsistent with the results of CodeRefsTo() I observed in IDA Pro 7.0.
# a code xref is like a fallthrough or jump, not like a call.
for xref in idb.analysis.get_crefs_to(self.idb, ea,
types=[idaapi.fl_JN, idaapi.fl_JF, idaapi.fl_F]):
yield xref.frm