importlib_metadata icon indicating copy to clipboard operation
importlib_metadata copied to clipboard

Tighten the EntryPoint interface

Open jaraco opened this issue 8 months ago • 0 comments

I've also observed that the issue affects .module and .attr and .load. I'm trying to decide what's the best behavior here. I think it should fail early, at construction time, but right now, the interface is open to mutation of the entry point properties. Probably those should be made final.

Originally posted by @jaraco in #488

Additionally, EntryPoint could probably subclass SimpleNamespace except that EntryPoint currently allows for positional arguments. Let's deprecate that behavior and require keyword arguments.

jaraco avatar Apr 27 '25 13:04 jaraco