gtn/.venv/Lib/site-packages/pylint/config/exceptions.py
Tipragot 628be439b8 Ajout d'un environement de développement.
Cela permet de ne pas avoir de problèmes de compatibilité
car python est dans le git.
2023-10-26 15:33:03 +02:00

26 lines
826 B
Python

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
from __future__ import annotations
class UnrecognizedArgumentAction(Exception):
"""Raised if an ArgumentManager instance tries to add an argument for which the
action is not recognized.
"""
class _UnrecognizedOptionError(Exception):
"""Raised if an ArgumentManager instance tries to parse an option that is
unknown.
"""
def __init__(self, options: list[str], *args: object) -> None:
self.options = options
super().__init__(*args)
class ArgumentPreprocessingError(Exception):
"""Raised if an error occurs during argument pre-processing."""