Debian Codegraph @

lib/ansible/galaxy/dependency_resolution/errors.py

raw
1 # -*- coding: utf-8 -*-
2 # Copyright: (c) 2020-2021, Ansible Project
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4 """Dependency resolution exceptions."""
5
6 from __future__ import annotations
7
8 try:
9 from resolvelib.resolvers import ( # pylint: disable=unused-import
10 ResolutionImpossible as CollectionDependencyResolutionImpossible,
11 InconsistentCandidate as CollectionDependencyInconsistentCandidate,
12 )
13 except ImportError:
14 class CollectionDependencyResolutionImpossible(Exception): # type: ignore[no-redef]
15 pass
16
17 class CollectionDependencyInconsistentCandidate(Exception): # type: ignore[no-redef]
18 pass