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 08:32:32 -07:00
committed by GitHub
parent b9937184ed
commit 4ac3ccad45
25 changed files with 44 additions and 236 deletions
+3 -11
View File
@@ -334,10 +334,7 @@ class str(Sequence[str]):
def count(self, x: str, __start: Optional[SupportsIndex] = ..., __end: Optional[SupportsIndex] = ...) -> int: ...
def encode(self, encoding: str = ..., errors: str = ...) -> bytes: ...
def endswith(
self,
__suffix: Union[str, Tuple[str, ...]],
__start: Optional[SupportsIndex] = ...,
__end: Optional[SupportsIndex] = ...,
self, __suffix: Union[str, Tuple[str, ...]], __start: Optional[SupportsIndex] = ..., __end: Optional[SupportsIndex] = ...
) -> bool: ...
def expandtabs(self, tabsize: int = ...) -> str: ...
def find(self, __sub: str, __start: Optional[SupportsIndex] = ..., __end: Optional[SupportsIndex] = ...) -> int: ...
@@ -375,10 +372,7 @@ class str(Sequence[str]):
def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ...
def splitlines(self, keepends: bool = ...) -> List[str]: ...
def startswith(
self,
__prefix: Union[str, Tuple[str, ...]],
__start: Optional[SupportsIndex] = ...,
__end: Optional[SupportsIndex] = ...,
self, __prefix: Union[str, Tuple[str, ...]], __start: Optional[SupportsIndex] = ..., __end: Optional[SupportsIndex] = ...
) -> bool: ...
def strip(self, __chars: Optional[str] = ...) -> str: ...
def swapcase(self) -> str: ...
@@ -999,9 +993,7 @@ def eval(
__source: Union[str, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...
) -> Any: ...
def exec(
__source: Union[str, bytes, CodeType],
__globals: Optional[Dict[str, Any]] = ...,
__locals: Optional[Mapping[str, Any]] = ...,
__source: Union[str, bytes, CodeType], __globals: Optional[Dict[str, Any]] = ..., __locals: Optional[Mapping[str, Any]] = ...
) -> Any: ...
def exit(code: object = ...) -> NoReturn: ...