Hi. I’m getting a bunch of false positives for situations like this:
@overload def foo(self, arg: int) -> str: ... @overload def foo(self, arg: str) -> int: ... def foo(self, arg: Union[str, int]) -> Union[str, int]: # do stuff with self
DeepSource complains that I don’t use
self int the first two “functions” (PYL-R0201) and that the “function bodies” are empty (PTC-W0049). I already marked those as false positives with an explanation, but it seemed like a good idea to have this issue documented somewhere so that people can add more info, if they’re having a similar problem.
PS: I would include links to relevant issues, but I don’t have enough reputation or something like that.