We are using pyright with pyodbc in our library. On strict settings, pyright complains about some of the functions/classes that they have unknown typing. Adding the types on variable arguments and in attrs_before fixes the issue.
The attrs_before keys and values right typing looks Dict[str, Any] but I started the commit with Dict[Any, Any] to be safe.
Hello!
We are using pyright with pyodbc in our library. On strict settings, pyright complains about some of the functions/classes that they have unknown typing. Adding the types on variable arguments and in
attrs_before
fixes the issue.The
attrs_before
keys and values right typing looksDict[str, Any]
but I started the commit withDict[Any, Any]
to be safe.