• 
      

    Make create_resource use keyword-only arguments.

    Review Request #14414 — Created April 30, 2025 and submitted

    Information

    RBTools
    master

    Reviewers

    The create_resource method recently gained an additional argument, and
    it's getting unwieldy. This change makes it use keyword-only arguments
    with appropriate deprecation.

    Ran unit tests.

    Summary ID
    Make create_resource use keyword-only arguments.
    The create_resource method recently gained an additional argument, and it's getting unwieldy. This change makes it use keyword-only arguments with appropriate deprecation. Testing Done: Ran unit tests.
    bda92193e5bb5a27d64e6e56929f8e23a4a7c282
    Description From Last Updated

    Not necessary but since you're touching this, you could move the other typing imports under the if TYPE_CHECKING block to …

    maubinmaubin

    Final should come before Optional

    maubinmaubin

    This is in the wrong import group.

    chipx86chipx86
    maubin
    1. 
        
    2. rbtools/api/tests/base.py (Diff revision 1)
       
       
      Show all issues

      Not necessary but since you're touching this, you could move the other typing imports under the if TYPE_CHECKING block to follow our new style.

    3. 
        
    david
    maubin
    1. 
        
    2. rbtools/api/tests/base.py (Diff revisions 1 - 2)
       
       
      Show all issues

      Final should come before Optional

    3. 
        
    david
    chipx86
    1. 
        
    2. rbtools/api/factory.py (Diff revision 3)
       
       
      Show all issues

      This is in the wrong import group.

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (fa08012)