You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the pyright lsp with neovim, I get this error:
"Type[Cursor]" is not iterable
When using pycharm I get a warning of:
Expected type 'collections.Iterable', got 'Type[Cursor]' instead
As temporary work around I have modified the signature of the execute method of Cursor class in oracledb/cursor.py to return Union['Cursor', None] instead of Union[Type["Cursor"], None].
Various IDEs complain about the
Cursor
type not being iterable even though it is.For example:
When using the pyright lsp with neovim, I get this error:
When using pycharm I get a warning of:
As temporary work around I have modified the signature of the
execute
method ofCursor
class inoracledb/cursor.py
to returnUnion['Cursor', None]
instead ofUnion[Type["Cursor"], None]
.original:
new:
OS: macOS BigSur v11.6.1
pycharm 2022.1.4 (Professional Edition)
NVIM v0.7.2
pyright 1.1.270
The text was updated successfully, but these errors were encountered: