changeset 51282 | 9d3721552b6c |
parent 51135 | 5c9c41273367 |
child 51284 | f15cb5111a1e |
--- a/mercurial/utils/urlutil.py Wed Nov 08 01:58:16 2023 +0100 +++ b/mercurial/utils/urlutil.py Wed Dec 20 12:51:20 2023 +0100 @@ -8,6 +8,10 @@ import re as remod import socket +from typing import ( + Union, +) + from ..i18n import _ from .. import ( encoding, @@ -24,11 +28,8 @@ constants as revlog_constants, ) - -if pycompat.TYPE_CHECKING: - from typing import ( - Union, - ) +# keeps pyflakes happy +assert [Union] urlreq = urllibcompat.urlreq