Skip to content

Fix RI reform exports to match standard pattern #7327

@DTrim99

Description

@DTrim99

Summary

The RI high earner tax and social security exemption reforms have incorrect __init__.py exports that prevent them from working properly when toggled via the app or notebook.

Problem

The __init__.py files were exporting both the factory function and the pre-built reform:

from policyengine_us.reforms.states.ri.high_earner_tax.ri_high_earner_tax_reform import (
    create_ri_high_earner_tax_reform,
    ri_high_earner_tax,
)

This differs from the working pattern used by RI CTC which only exports the factory:

from .ri_ctc_reform import create_ri_ctc_reform

Fix

Update both __init__.py files to match the standard pattern:

  • policyengine_us/reforms/states/ri/high_earner_tax/__init__.py
  • policyengine_us/reforms/states/ri/social_security_exemption/__init__.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions