InvokeAI/invokeai/app/services/shared
psychedelicious 3726293258 feat(nodes): improve types in graph.py
Methods `get_node` and `complete` were typed as returning a dynamically created unions `InvocationsUnion` and `InvocationOutputsUnion`, respectively.

Static type analysers cannot work with dynamic objects, so these methods end up as effectively un-annotated, returning `Unknown`.

They now return `BaseInvocation` and `BaseInvocationOutput`, respectively, which are the superclasses of all members of each union. This gives us the best type annotation that is possible.

Note: the return types of these methods are never introspected, so it doesn't really matter what they are at runtime.
2024-02-14 07:56:10 +11:00
..
sqlite tidy(migrator): remove logic to check if graph_executions exists in migration 5 2024-02-02 09:20:41 +11:00
sqlite_migrator Port the command-line tools to use model_manager2 (#5546) 2024-02-02 17:18:47 +00:00
__init__.py feat(backend): organise service dependencies 2023-10-12 12:15:06 -04:00
default_graphs.py chore: ruff check - fix flake8-comprensions 2023-11-11 10:55:23 +11:00
graph.py feat(nodes): improve types in graph.py 2024-02-14 07:56:10 +11:00
pagination.py feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00