Skip to content

Commit

Permalink
Remove reference to ServicerBase (#1)
Browse files Browse the repository at this point in the history
This should allow packages to use the real betterproto as a dependency rather than this fork.
  • Loading branch information
bbonenfant authored Mar 23, 2023
1 parent 32cb21c commit 8509483
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "betterproto"
version = "2.0.0b5+pachv1.0.0"
version = "2.0.0b5+pachv1.0.1"
description = "A better Protobuf / gRPC generator & library"
authors = ["Daniel G. Taylor <[email protected]>"]
readme = "README.md"
Expand Down
1 change: 1 addition & 0 deletions src/betterproto/grpc/grpcio_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: This file isn't necessary for clients, might be necessary for servers.
from typing import Dict, TYPE_CHECKING
from abc import ABC, abstractmethod

Expand Down
3 changes: 1 addition & 2 deletions src/betterproto/templates/template.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import betterproto.lib.google.protobuf as betterproto_lib_google_protobuf
{% endfor %}
{% if output_file.services%}
import grpc
from betterproto.grpc.grpcio_server import ServicerBase
{% endif %}

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -174,7 +173,7 @@ class {{ service.py_name }}Stub:
{% endfor %}

{% for service in output_file.services %}
class {{ service.py_name }}Base(ServicerBase):
class {{ service.py_name }}Base:
{% if service.comment %}
{{ service.comment }}

Expand Down

0 comments on commit 8509483

Please sign in to comment.