davebirch
davebirch
Already have some initial unit tests for this as described above, am pretty flat out until tomorrow evening, but will try and get an initial PR with some sample unit...
So, I had a go at this a little while back. Seems to be blocked on MyPy not allowing Protocol to be used as a type. So it appears there...
Exactly that issue, same problem as with other abstract types. Given you had said that the MyPy checking was a fairly ideal, it seemed a non-starter so I mostly just...
No worries, Python: 3.6 Injector: 0.18.3 Here's a link to the documentation of the feature in the MyPy docs, as well as a small reproducer. https://mypy.readthedocs.io/en/stable/common_issues.html#import-cycles Full output of the...
Thanks for the detailed suggestions, yeah 1) isn't going to be possible, I'd simplified the example for the reproducer. 2) Looks like it might help, I will digest properly and...
No worries, yeah I figured the TYPE_CHECKING approach was probably a non-starter. I'll do some more digging around the second idea and see if I can string together some kind...
So, just trying to figure out how to piece the POC together, and wanted to confirm a few assumptions if you don't mind? 1) get_type_hints has the two globalns and...
So I did figure that aliased classes would be a problem, but then had discounted having to worry about it because I assumed it would be caught by the first...
Ok, think I have a new plan that doesn't involve the need for reimplementing get_type_hints and gives the same result, just need to do some checking between python versions to...
Think I'm making some progress, bit delayed with anything to be able to show for it as I need to run through some internal box-ticking in order to get permission...