yapf icon indicating copy to clipboard operation
yapf copied to clipboard

Yapf does not format some function

Open ThomasLamalle opened this issue 4 years ago • 0 comments

I want all my function to look like these def some_thing( param_dict: dict, depth_polar: np.ndarray, intensity_polar: Optional[np.ndarray] = None, ) -> Tuple[np.ndarray, np.ndarray]: pass image

And yapf format it well for most of the time but there is one function where it does not work :

def another_thing(polar: np.ndarray, circles: np.ndarray, r_min_px: int, dist_max_px: int = 10) -> Tuple[np.ndarray, np.ndarray, np.ndarray]: pass image

Both functions are in the same file...

Here are my arguments usinge VS Code format on save : --style {based_on_style: pep8, column_limit: 120, DEDENT_CLOSING_BRACKETS: true}

I use VS Code and yapf v0.31.0

yapf_example.zip

ThomasLamalle avatar Apr 07 '21 16:04 ThomasLamalle