Mercurial > public > mercurial-scm > hg-stable
changeset 52887:346d2c04440a
util: mark `transactional` as an ABC in a more convention manner
Not sure if this was a py2 legacy holdover, but we'll see if this unconfuses
pytype.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 20 Dec 2024 19:13:06 -0500 |
parents | e6069f84abbb |
children | 7a6fc0e2a89a |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Mon Feb 10 10:42:16 2025 +0100 +++ b/mercurial/util.py Fri Dec 20 19:13:06 2024 -0500 @@ -1416,11 +1416,9 @@ """ -class transactional: # pytype: disable=ignored-metaclass +class transactional(abc.ABC): """Base class for making a transactional type into a context manager.""" - __metaclass__ = abc.ABCMeta - @abc.abstractmethod def close(self): """Successfully closes the transaction."""