Add type hints to resmoke dictionary and jscomment utils

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

        1. Summary
      • Add parameter and return type annotations to all functions in `dictionary.py` (5 functions + 1 inner function) and `jscomment.py` (2 functions)
      • `dictionary.py` uses `Any` for `merge_dicts` params since it handles both MutableMapping and non-MutableMapping inputs
      • `jscomment.py` accepts `str | bytes` for `_strip_jscomments` matching the existing runtime check
      • Part of an incremental effort to add type hints across resmoke Python code
        1. Test plan
      • [x] All modified files pass `python -m py_compile`
      • [ ] Verify resmoke `core` suite still passes with these changes

      Generated with [Claude Code](https://claude.com/claude-code)

            Assignee:
            Alex Neben
            Reporter:
            Alex Neben
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: