Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/canonicaljson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ def __call__(self, *args: Any, **kwargs: Any) -> "Encoder":
pass


class JsonLibrary(Protocol):
JSONEncoder: Encoder
class JsonLibrary(Protocol): # pragma: no cover
@property
def JSONEncoder(self) -> Encoder:
pass


# Declare these in the module scope, but they get configured in
Expand Down