• 
      

    Update typing: Dict[...]

    Review Request #14773 — Created Jan. 12, 2026 and submitted

    Information

    RBTools
    master

    Reviewers

    This change updates the type hints in the rbtools codebase to replace
    Dict[...] with either dict[...] or Mapping[...] as appropriate (or
    in a couple cases, RBToolsConfig).

    Ran unit tests.

    Summary ID
    Update typing: Dict[...]
    This change updates the type hints in the rbtools codebase to replace `Dict[...]` with either `dict[...]` or `Mapping[...]` as appropriate (or in a couple cases, `RBToolsConfig`). Testing Done: Ran unit tests.
    lxqklrlrulynqkzllzlmskvlrnsourus
    Description From Last Updated

    'collections.abc.Mapping' imported but unused Column: 1 Error code: F401

    reviewbotreviewbot

    Can we use | None here instead of Optional?

    maubinmaubin

    Can we use | None here instead of Optional?

    maubinmaubin

    Aside: isn't it bad to use empty dicts as default values because they can be mutated between calls? Maybe not …

    maubinmaubin
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8

    david
    maubin
    1. 
        
    2. rbtools/clients/base/scmclient.py (Diff revision 2)
       
       
      Show all issues

      Can we use | None here instead of Optional?

      1. That will come in a later change. I want to keep these tightly focused.

    3. rbtools/clients/svn.py (Diff revision 2)
       
       
      Show all issues

      Can we use | None here instead of Optional?

    4. rbtools/clients/tests/__init__.py (Diff revision 2)
       
       
       
       
      Show all issues

      Aside: isn't it bad to use empty dicts as default values because they can be mutated between calls? Maybe not a problem since this is only for unit tests.

      1. Yes, it is. Again, not something I'd want to include in this particular change.

    5. 
        
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (3d5de6d)