Skip to content

Commit d397a6e

Browse files
committed
Privatize the Protocol.
1 parent ff0135a commit d397a6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geojson_pydantic/geo_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Any, Dict, Protocol
44

55

6-
class DictProtocol(Protocol):
6+
class _DictProtocol(Protocol):
77
"""Protocol for use as the type of self in the mixin."""
88

99
def dict(self, *, exclude_unset: bool, **args: Any) -> Dict[str, Any]:
@@ -15,7 +15,7 @@ class GeoInterfaceMixin:
1515
"""Mixin for __geo_interface__ on GeoJSON objects."""
1616

1717
@property
18-
def __geo_interface__(self: DictProtocol) -> Dict[str, Any]:
18+
def __geo_interface__(self: _DictProtocol) -> Dict[str, Any]:
1919
"""GeoJSON-like protocol for geo-spatial (GIS) vector data.
2020
2121
ref: https://gist.github.com/sgillies/2217756#__geo_interface

0 commit comments

Comments
 (0)