up follow livre
This commit is contained in:
parent
70a5c3465c
commit
cffb31c1ef
12198 changed files with 2562132 additions and 35 deletions
51
venv/lib/python3.13/site-packages/kiwisolver/exceptions.py
Normal file
51
venv/lib/python3.13/site-packages/kiwisolver/exceptions.py
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# --------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2023-2024, Nucleic Development Team.
|
||||
#
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
#
|
||||
# The full license is in the file LICENSE, distributed with this software.
|
||||
# --------------------------------------------------------------------------------------
|
||||
"""Kiwi exceptions.
|
||||
|
||||
Imported by the kiwisolver C extension.
|
||||
|
||||
"""
|
||||
|
||||
|
||||
class BadRequiredStrength(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class DuplicateConstraint(Exception):
|
||||
__slots__ = ("constraint",)
|
||||
|
||||
def __init__(self, constraint):
|
||||
self.constraint = constraint
|
||||
|
||||
|
||||
class DuplicateEditVariable(Exception):
|
||||
__slots__ = ("edit_variable",)
|
||||
|
||||
def __init__(self, edit_variable):
|
||||
self.edit_variable = edit_variable
|
||||
|
||||
|
||||
class UnknownConstraint(Exception):
|
||||
__slots__ = ("constraint",)
|
||||
|
||||
def __init__(self, constraint):
|
||||
self.constraint = constraint
|
||||
|
||||
|
||||
class UnknownEditVariable(Exception):
|
||||
__slots__ = ("edit_variable",)
|
||||
|
||||
def __init__(self, edit_variable):
|
||||
self.edit_variable = edit_variable
|
||||
|
||||
|
||||
class UnsatisfiableConstraint(Exception):
|
||||
__slots__ = ("constraint",)
|
||||
|
||||
def __init__(self, constraint):
|
||||
self.constraint = constraint
|
||||
Loading…
Add table
Add a link
Reference in a new issue