pablodz / pipewire_python

Inconsistent return statements PYL-R1710
Style
Minor
5 months agoa year old
Either all return statements in a function should return an expression, or none of them should.
306    right: Output
307
308    @property
309    def device(self) -> Union[str, None]:310        """Determine the Device Associated with this Stereo Output."""
311        if self.left.device == self.right.device:
312            return self.right.device
Either all return statements in a function should return an expression, or none of them should.
239    right: Input
240
241    @property
242    def device(self) -> Union[str, None]:243        """Determine the Device Associated with this Stereo Input."""
244        if self.left.device == self.right.device:
245            return self.right.device