Ask Your Question
0

Is it possible to turn off type errors from third-party packages in Pylance?

asked 2021-07-27 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-08-22 23:00:00 +0000

djk gravatar image

No, it is not possible to turn off type errors from third-party packages in Pylance without modifying the code or disabling Pylance altogether. Pylance relies on type annotations to provide accurate and useful error messages, which are often provided by third-party packages. Disabling these errors may result in inaccurate and incomplete error messages. Additionally, modifying the code of third-party packages is not recommended as it can introduce unexpected behavior and make it difficult to upgrade to newer versions of the package.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-27 11:00:00 +0000

Seen: 9 times

Last updated: Aug 22 '22