Skip to content

Commit 76fabda

Browse files
committed
Use abstract class instea of Protocol
To support all Python versions.
1 parent 88a334b commit 76fabda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphdatascience/error/client_only_endpoint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from typing import Any, Callable, Protocol, TypeVar, cast
1+
from abc import ABC
2+
from typing import Any, Callable, TypeVar, cast
23

34
F = TypeVar("F", bound=Callable[..., Any])
45

56

6-
class WithNamespace(Protocol):
7+
class WithNamespace(ABC):
78
_namespace: str
89

910

0 commit comments

Comments
 (0)