InvokeAI/invokeai/app
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
..
api Upgrade version of fastapi and socketio 2024-02-09 09:04:01 +11:00
assets/images tweaks in response to psychedelicious review of PR 2023-07-26 15:27:04 +10:00
invocations chore: rename DWPose to DW Openpose 2024-02-12 11:12:45 -05:00
services feat(nodes): improve types in graph.py 2024-02-14 07:56:10 +11:00
shared Add CFG Rescale option for supporting zero-terminal SNR models (#4335) 2023-11-30 20:55:20 +11:00
util feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
api_app.py chore: ruff 2024-01-22 16:10:25 +11:00