chore(types): fill out remaining partial types. <!-- Thank you for contributing to Pyodide! All improvements are welcome,
     so don't be afraid to make a PR. -->

### Description

<!-- Please explain what your PR is about:
     - reasoning for the change
     - some details of updated code
     - any noteworthy choices to be aware of
	Please refer to any related issues by #<issue_id> -->

Filling out remaining partially typed functions. Had to guess on a few, maybe some Any's could be avoided.

def test_pytest(selenium):
    # TODO: don't use numpy in this test as it's not necessairly installed.
    selenium.load_package(["pytest", "numpy", "nose"])

    selenium.run(
        """
        from pathlib import Path
        import os
        import numpy
        import pytest

        base_dir = Path(numpy.__file__).parent / "core" / "tests"
        """
    )

    selenium.run("pytest.main([str(base_dir / 'test_api.py')])")

    logs = "\n".join(selenium.logs)
    assert "INTERNALERROR" not in logs

def test_pytest(selenium):
    # TODO: don't use numpy in this test as it's not necessairly installed.
    selenium.load_package(["pytest", "numpy", "nose"])

    selenium.run(
        """
        from pathlib import Path
        import os
        import numpy
        import pytest

        base_dir = Path(numpy.__file__).parent / "core" / "tests"
        """
    )

    selenium.run("pytest.main([str(base_dir / 'test_api.py')])")

    logs = "\n".join(selenium.logs)
    assert "INTERNALERROR" not in logs
