-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: allow non-union assertion types #8077
Conversation
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
fixes vimeo#5657 Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Could you take a look at the CI failures? |
Sure! Just need some time - gonna change this to draft for now. |
This will avoid issues with invalid intersection assertions. Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…ingle Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…ar_id` Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…tion Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…eralInt` and `TLiteralString` Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
…pe, do not consider the new type as a replacement Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Seems interesting :) remove draft mode when it's ready ;) |
I am still working on it as there are some cases I'd like to work. Sadly, I have to manipulate the union in some special case and thus have to rework the current logic a bit. 😅 |
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Okay, I guess I have everything. |
…ored within a union Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
LGTM, tell me if it's ready from your side :) |
Its ready from my PoV 👌🏻 |
Thanks! |
In #5657, I was wondering why
oneOf
does not work as expected.That was due to the fact that psalm is simply not able to apply assertions for non-single union types.
This PR changes this and thus is declared as
feature
even tho the originating issue was flagged as a bug.