Skip to content

Commit

Permalink
ruff:
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton-byte committed May 14, 2024
1 parent e40ae57 commit c380489
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 102 deletions.
11 changes: 6 additions & 5 deletions neonize/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@ def build_reply_message(
partial_message.MergeFrom(preview)
else:
partial_message = message
field_name = partial_message.__class__.__name__[0].lower() + partial_message.__class__.__name__[1:] # type: ignore
field_name = (
partial_message.__class__.__name__[0].lower()
+ partial_message.__class__.__name__[1:]
) # type: ignore
partial_message.contextInfo.MergeFrom(
self._make_quoted_message(quoted, reply_privately)
)
Expand Down Expand Up @@ -1086,12 +1089,10 @@ def upload(
return upload_model.UploadResponse

@overload
def download_any(self, message: Message) -> bytes:
...
def download_any(self, message: Message) -> bytes: ...

@overload
def download_any(self, message: Message, path: str) -> NoneType:
...
def download_any(self, message: Message, path: str) -> NoneType: ...

def download_any(
self, message: Message, path: Optional[str] = None
Expand Down
1 change: 1 addition & 0 deletions neonize/proto/Neonize_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion neonize/proto/Neonize_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""

import builtins
import collections.abc
import def_pb2
Expand Down Expand Up @@ -2261,7 +2262,9 @@ class NewsletterThreadMetadata(google.protobuf.message.Message):
@property
def Description(self) -> global___NewsletterText: ...
SubscriberCount: builtins.int
VerificationState: global___NewsletterThreadMetadata.NewsletterVerificationState.ValueType
VerificationState: (
global___NewsletterThreadMetadata.NewsletterVerificationState.ValueType
)
@property
def Picture(self) -> global___ProfilePictureInfo: ...
@property
Expand Down
1 change: 1 addition & 0 deletions neonize/proto/def_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c380489

Please sign in to comment.