comparison mercurial/debugcommands.py @ 46785:521ac0d7047f stable

typing: disable import error warnings that are already handled I'm assuming that the cffi ones are handled somewhere, but the others definitely are. Differential Revision: https://phab.mercurial-scm.org/D10207
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 13 Mar 2021 00:38:59 -0500
parents 8408c3198ec1
children e2f7b2695ba1
comparison
equal deleted inserted replaced
46784:65f437c240f2 46785:521ac0d7047f
1620 _(b"checking Python lib (%s)...\n"), 1620 _(b"checking Python lib (%s)...\n"),
1621 pythonlib or _(b"unknown"), 1621 pythonlib or _(b"unknown"),
1622 ) 1622 )
1623 1623
1624 try: 1624 try:
1625 from . import rustext 1625 from . import rustext # pytype: disable=import-error
1626 1626
1627 rustext.__doc__ # trigger lazy import 1627 rustext.__doc__ # trigger lazy import
1628 except ImportError: 1628 except ImportError:
1629 rustext = None 1629 rustext = None
1630 1630