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
+4 -40
View File
@@ -244,59 +244,23 @@ class EnumDescriptor(_NestedDescriptorBase):
def GetOptions(self) -> EnumOptions: ...
class EnumValueDescriptor(DescriptorBase):
def __new__(
cls,
name,
index,
number,
type=...,
options=...,
serialized_options=...,
create_key=...,
): ...
def __new__(cls, name, index, number, type=..., options=..., serialized_options=..., create_key=...): ...
name: Any
index: Any
number: Any
type: Any
def __init__(
self,
name,
index,
number,
type=...,
options=...,
serialized_options=...,
create_key=...,
) -> None: ...
def __init__(self, name, index, number, type=..., options=..., serialized_options=..., create_key=...) -> None: ...
def GetOptions(self) -> EnumValueOptions: ...
class OneofDescriptor:
def __new__(
cls,
name,
full_name,
index,
containing_type,
fields,
options=...,
serialized_options=...,
create_key=...,
): ...
def __new__(cls, name, full_name, index, containing_type, fields, options=..., serialized_options=..., create_key=...): ...
name: Any
full_name: Any
index: Any
containing_type: Any
fields: Any
def __init__(
self,
name,
full_name,
index,
containing_type,
fields,
options=...,
serialized_options=...,
create_key=...,
self, name, full_name, index, containing_type, fields, options=..., serialized_options=..., create_key=...
) -> None: ...
def GetOptions(self) -> OneofOptions: ...
@@ -34,8 +34,5 @@ def Parse(
descriptor_pool: Optional[DescriptorPool] = ...,
) -> _MessageT: ...
def ParseDict(
js_dict: Any,
message: _MessageT,
ignore_unknown_fields: bool = ...,
descriptor_pool: Optional[DescriptorPool] = ...,
js_dict: Any, message: _MessageT, ignore_unknown_fields: bool = ..., descriptor_pool: Optional[DescriptorPool] = ...
) -> _MessageT: ...