Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ViridianForge committed Feb 18, 2024
1 parent 82c2d40 commit 99c2e55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/grpc_requests/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ async def _get_service_names(self):
"This function is deprecated, and will be removed in the 0.1.17 release. Use get_file_descriptors_by_name() instead.",
DeprecationWarning,
)

async def get_file_descriptor_by_name(self, name):
request = reflection_pb2.ServerReflectionRequest(file_by_filename=name)
result = await self._reflection_single_request(request)
Expand All @@ -467,6 +468,7 @@ async def get_file_descriptor_by_name(self, name):
"This function is deprecated, and will be removed in the 0.1.17 release. Use get_file_descriptors_by_symbol() instead.",
DeprecationWarning,
)

async def get_file_descriptor_by_symbol(self, symbol):
request = reflection_pb2.ServerReflectionRequest(file_containing_symbol=symbol)
result = await self._reflection_single_request(request)
Expand Down
4 changes: 3 additions & 1 deletion src/grpc_requests/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def get_service_descriptor(self, service):
def describe_method_request(self, service, method):
warnings.warn(
"This function is deprecated, and will be removed in the 0.1.17 release. Use describe_descriptor() instead.",
DeprecationWarning,
DeprecationWarning,
)
return describe_request(self.get_method_descriptor(service, method))

Expand Down Expand Up @@ -476,6 +476,7 @@ def _get_service_names(self):
"This function is deprecated, and will be removed in the 0.1.17 release. Use get_file_descriptors_by_name() instead.",
DeprecationWarning,
)

def get_file_descriptor_by_name(self, name):
request = reflection_pb2.ServerReflectionRequest(file_by_filename=name)
result = self._reflection_single_request(request)
Expand All @@ -486,6 +487,7 @@ def get_file_descriptor_by_name(self, name):
"This function is deprecated, and will be removed in the 0.1.17 release. Use get_file_descriptors_by_symbol() instead.",
DeprecationWarning,
)

def get_file_descriptor_by_symbol(self, symbol):
request = reflection_pb2.ServerReflectionRequest(file_containing_symbol=symbol)
result = self._reflection_single_request(request)
Expand Down

0 comments on commit 99c2e55

Please sign in to comment.