view hgext/fastannotate/error.py @ 51773:e2f1efa2bd86

manifest: help pytype to understant `writesubtrees`'s `getnode` type Since we provide a default, the return of `_lazydirs.get` is cannot be None. We help pytype to understand that.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Aug 2024 10:15:10 +0200
parents 6000f5b25c9b
children f4733654f144
line wrap: on
line source

# Copyright 2016-present Facebook. All Rights Reserved.
#
# error: errors used in fastannotate
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.


class CorruptedFileError(Exception):
    pass


class CannotReuseError(Exception):
    """cannot reuse or update the cache incrementally"""