# HG changeset patch # User Matt Harbison # Date 1615515701 18000 # Node ID 6595e22048fe83facc488387b2f87c13f3332dba # Parent d6fa9fbd375d2c8f4faedac3eafc9a79265a31ef typing: fix a suppression directive that was mangled by black formatting It looks like black is moving comments needed by pytype out of position, and causing some things that should be disabled to be enforced anyway. Differential Revision: https://phab.mercurial-scm.org/D10165 diff -r d6fa9fbd375d -r 6595e22048fe mercurial/posix.py --- a/mercurial/posix.py Thu Mar 04 17:35:58 2021 +0530 +++ b/mercurial/posix.py Thu Mar 11 21:21:41 2021 -0500 @@ -321,9 +321,10 @@ fullpath = os.path.join(cachedir, target) open(fullpath, b'w').close() except IOError as inst: - if ( - inst[0] == errno.EACCES - ): # pytype: disable=unsupported-operands + # pytype: disable=unsupported-operands + if inst[0] == errno.EACCES: + # pytype: enable=unsupported-operands + # If we can't write to cachedir, just pretend # that the fs is readonly and by association # that the fs won't support symlinks. This