Skip to content

Commit 6549edb

Browse files
author
belek
committed
Added python 3.12, fixed signature, bumped version.
1 parent fdcdb8a commit 6549edb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language: python
44

55
python:
66
- "3.11"
7+
- "3.12"
78

89
env:
910
global:

Diff for: django_grpc/signals/wrapper.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from functools import wraps
2+
from typing import Dict
3+
24
import grpc
35
from grpc._utilities import RpcMethodHandler
46

@@ -41,7 +43,11 @@ def _replace_method_handler(self, method_handler: 'RpcMethodHandler') -> 'RpcMet
4143

4244
return RpcMethodHandler(**kwargs)
4345

44-
def add_registered_method_handlers(self, service_name: str, registered_method_handlers: tuple):
46+
def add_registered_method_handlers(
47+
self,
48+
service_name: str,
49+
method_handlers: Dict[str, grpc.RpcMethodHandler],
50+
):
4551
# do nothing; see https://github.com/grpc/grpc/issues/36683
4652
# and https://github.com/grpc/grpc/pull/36696
4753
pass

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-grpc"
3-
version = "1.0.21"
3+
version = "1.1.0"
44
description = "Easy gRPC service based on Django application"
55
authors = ["Stan Misiurev <[email protected]>"]
66
license = "MIT License"

0 commit comments

Comments
 (0)