Operator "|" not supported for types "dict[str, Unknown]" and "dict[Unknown, Unknown] | None" - is it a bug? #11195
Replies: 2 comments
-
|
Pyright compares all possible return types and in your case checks, if the operations So this error message does not mean that this will never work, but rather that there is some edgecase that was not considered. If you know that the library call will never return |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your response! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I don't know if it is a bug, or not. But here it is.

In this repo:
https://gitlab.com/miro-zamiro/fuujin
commit: 98afc4bbee4472d4f068d5cfc9dfb7cdb77ef29c
in file fuujin/main.py there is red wave under line 8 as in this screenshot:
However, when I build the package it works as expected:
Beta Was this translation helpful? Give feedback.
All reactions