call_report.fca.FCASchedule#
- class call_report.fca.FCASchedule(*values)[source]#
Bases:
StrEnumA Farm Credit Administration Call Report schedule.
Spans every schedule root name observed across FCA’s published history (2000-present), including both retired, pre-2018 combined schedules (
RCI,RIE) and the current, split schedules that replaced them (RCI1/RCI2A-RCI2D,RIE1/RIE2). The institution roster is handled separately viaload_institutionsrather than through this enum.Examples
>>> FCASchedule.RCB <FCASchedule.RCB: 'RCB'>
- classmethod coerce(*, value: FCASchedule | str) FCASchedule[source]#
Coerce a schedule value into an FCASchedule member.
Accepts either an existing FCASchedule member (returned unchanged) or a schedule name string, matched case-insensitively.
- Parameters:
- valueFCASchedule or str
The schedule to coerce.
- Returns:
- FCASchedule
The matching enum member.
- Raises:
- ScheduleNotFoundError
If value is a string that does not match any known schedule name.
Examples
>>> FCASchedule.coerce(value="rcb") <FCASchedule.RCB: 'RCB'>