Pyright - rules exceptions for specific libraries?
I am currently doing some efforts on applying Pyright throughout my project. Most of the time I want to fix the issues instead of ignoring them, however, in some situations (mainly on specific imports) I always want to ignore some rules. I know that you can have file level or line level rules exceptions but both are problematic for me. For line level, like: from mockito import ANY, mock, unstub, when ... when(bob).get_fruit("Apple").thenReturn("Apple") # pyright: ignore[reportUnknownMemberType] I like that since I can keep the rule exception on specific situations but the issue is that I will
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.