Skip to content

Should importlib.util.spec_from_loader use a Protocol for the loader parameter ? #11882

Closed
@Avasam

Description

@Avasam

Essentially a question asked by @abravalheri at https://github.com/pypa/setuptools/pull/4246/files#r1593000435 .

  1. Should importlib.util.spec_from_loader use a Protocol for the loader parameter ?
  2. Would it make sense for pkg_resources.extern.VendorImporter and setuptools.extern.VendorImporter to subclass importlib.abc.Loader ?
  3. Just type: ignore[arg-type] the call to importlib.util.spec_from_loader ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions