Skip to content

Commit 32dc557

Browse files
committed
Mark zeroconf.cache as protected by renaming to zeroconf._cache
- The public API should only access zeroconf and zeroconf.aio as internals may be relocated between releases
1 parent 241700a commit 32dc557

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

zeroconf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import sys
2424

25-
from .cache import DNSCache # noqa # import needed for backwards compat
25+
from ._cache import DNSCache # noqa # import needed for backwards compat
2626
from ._core import NotifyListener, Zeroconf # noqa # import needed for backwards compat
2727
from ._dns import ( # noqa # import needed for backwards compat
2828
DNSAddress,
File renamed without changes.

zeroconf/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
from types import TracebackType # noqa # used in type hints
2929
from typing import Dict, List, Optional, Type, Union, cast
3030

31+
from ._cache import DNSCache
3132
from ._dns import DNSIncoming, DNSOutgoing, DNSQuestion
3233
from ._exceptions import NonUniqueNameException
3334
from ._handlers import QueryHandler, RecordManager
3435
from ._logger import QuietLogger, log
35-
from .cache import DNSCache
3636
from .const import (
3737
_CACHE_CLEANUP_INTERVAL,
3838
_CHECK_TIME,

zeroconf/_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
if TYPE_CHECKING:
5858
# https://github.com/PyCQA/pylint/issues/3525
59-
from .cache import DNSCache # pylint: disable=cyclic-import
59+
from ._cache import DNSCache # pylint: disable=cyclic-import
6060

6161

6262
class DNSEntry:

0 commit comments

Comments
 (0)