Skip to content

Conversation

@leonarduschen
Copy link
Contributor

Partially addresses #934

Continuation of #935

Retrofitted for:
- configuration.py
- container.py
- declarative_container.py
- delegate.py
- dependencies_container.py
- dependency.py
- dict.py
- dynamic_container.py

- configuration.py
- container.py
- declarative_container.py
- delegate.py
- dependencies_container.py
- dependency.py
- dict.py
- dynamic_container.py
@leonarduschen leonarduschen changed the base branch from master to develop December 8, 2025 07:14
@coveralls
Copy link

coveralls commented Dec 8, 2025

Coverage Status

coverage: 94.85%. remained the same
when pulling 41ca172 on leonarduschen:retrofit-assert-type-2
into abc79ef on ets-labs:develop.

def __init__(self, callable: Callable) -> None: ...

class Coroutine(Callable[T]): ...
class Coroutine(Callable[T_Any]): ...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the libery to go a bit out-of-scope in this PR because otherwise mypy will complain since it can't infer type for T for string imports (.e.g, providers.Coroutine("_coro"))

tests/typing/coroutine.py:16: error: Need type annotation for "provider2"  [var-annotated]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants