Bob Gregory

Results 33 comments of Bob Gregory

> adding container.register() for every possible dependency seems redundant. It's not about explicit or implicit. When you reach certain scale, you know basic components of your system, and know that...

If you want to test out #200 I can draft a new release. I'd like to get some of the outstanding issues fixed up for a 0.8, and then probably...

That's a good call, I'll add that to this PR before merging.

https://pypi.org/project/punq/0.8.0.dev1/

I think this may have been fixed by the toolchain refresh. Can you confirm on 0.7.1.dev1? ``` code/play/punq-test via 🐍 v3.12.6 (punq-test) on ☁️ (eu-west-2) ❯ pip install punq==0.7.1.dev1 Collecting...

I would be accepting! I think it would be deferred to a 1.0 because I suspect it _does_ break some use cases, but I'd love to collaborate, so I'm not...

From the spike I'm playing with, I think tihs requires The [TypeForm](https://peps.python.org/pep-0747/) type, though that's presently not working with Pyright. I'm going to experiment a little further, but this is...

What's more annoying is that TypeForm _is_ part of typing_extensions now, but doesn't seem to work under pyright. I will check mypy, and keep an eye on the progress. Edit:...

> Hi all! Is there any updates on that? :) Hey friend! I've been crazy busy with work, so the short answer is no. I'm definitely interested in getting it...

Fixes #189 Come slightly unstuck on the Protocol case, ie ``` class Service(Protocol): def do_thing(self): ... class Impl: def do_thing(self): print("lulz") container.register(Service, Impl) # Doesn't work because Impl isn't a...