black: enable skip_magic_trailing_comma (#5252)

* black: enable skip_magic_trailing_comma

* Remove spurious commas
This commit is contained in:
Sebastian Rittau
2021-04-27 17:32:32 +02:00
committed by GitHub
parent b9937184ed
commit 4ac3ccad45
25 changed files with 44 additions and 236 deletions

View File

@@ -16,11 +16,7 @@ class FileList:
def process_template_line(self, line: str) -> None: ...
@overload
def include_pattern(
self,
pattern: str,
anchor: Union[int, bool] = ...,
prefix: Optional[str] = ...,
is_regex: Literal[0, False] = ...,
self, pattern: str, anchor: Union[int, bool] = ..., prefix: Optional[str] = ..., is_regex: Literal[0, False] = ...
) -> bool: ...
@overload
def include_pattern(self, pattern: Union[str, Pattern[str]], *, is_regex: Literal[True, 1] = ...) -> bool: ...
@@ -34,11 +30,7 @@ class FileList:
) -> bool: ...
@overload
def exclude_pattern(
self,
pattern: str,
anchor: Union[int, bool] = ...,
prefix: Optional[str] = ...,
is_regex: Literal[0, False] = ...,
self, pattern: str, anchor: Union[int, bool] = ..., prefix: Optional[str] = ..., is_regex: Literal[0, False] = ...
) -> bool: ...
@overload
def exclude_pattern(self, pattern: Union[str, Pattern[str]], *, is_regex: Literal[True, 1] = ...) -> bool: ...