Add type hints to resmoke utils __init__ and registry

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 10 functions in `utils/_init_.py` (`open_or_use_stdout`, `default_if_none`, `is_windows`, `is_string_list`, `load_yaml_file`, `dump_yaml_file`, `dump_yaml`, `load_yaml`, `get_task_name_without_suffix`, `pick_catalog_shard_node`)
      • Add type annotations to all 3 functions in `utils/registry.py` (`suffix`, `make_registry_metaclass`, `Registry._new_`)
      • 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: