mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
black: enable skip_magic_trailing_comma (#5252)
* black: enable skip_magic_trailing_comma * Remove spurious commas
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user