changeset 51725 | 278af66e6595 |
parent 51699 | ca7bde5dbafb |
child 51816 | 71fb6e0a7a35 |
--- a/mercurial/revlog.py Tue Jul 23 19:14:16 2024 -0400 +++ b/mercurial/revlog.py Tue Jul 23 19:20:22 2024 -0400 @@ -20,6 +20,7 @@ import io import os import struct +import typing import weakref import zlib @@ -74,6 +75,12 @@ REVIDX_RAWTEXT_CHANGING_FLAGS, ) from .thirdparty import attr + +# Force pytype to use the non-vendored package +if typing.TYPE_CHECKING: + # noinspection PyPackageRequirements + import attr + from . import ( ancestor, dagop,