�
M�gQ � �D � d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZm Z m
Z
mZmZm
Z
mZ dZd dlmZ ede
eef �� � Zeegef Ze ddd d
�ddded
edefd�� � Zedd d
�deded
edefd�� � Z ddd d
�de
e ded
ede
eef fd�Ze ddd d
�ddded
edefd�� � Zedd d
�deded
edefd�� � Z ddd d
�de
e ded
ede
eef fd�Zdeded
edefd�Zd� Zd� Zdede e e fd�Zd� ZdS )� N)� FrameType�FunctionType)�Callable�List�Optional�Tuple�TypeVar�Union�overloadz7.7.0)�ensure_signature_is_compatible�_WrappedMethod)�boundTF��check_signature�check_at_runtime�methodr r �returnc � � d S �N� �r r r s �c/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/overrides/overrides.py� overridesr � � � �C� c � � d S r r r s r r r * r r c �` � | �t | ||� � S t j t ||�� � S )a0 Decorator to indicate that the decorated method overrides a method in
superclass.
The decorator code is executed while loading class. Using this method
should have minimal runtime performance implications.
How to use:
from overrides import overrides
class SuperClass(object):
def method(self):
return 2
class SubClass(SuperClass):
@overrides
def method(self):
return 1
:param check_signature: Whether or not to check the signature of the overridden method.
:param check_at_runtime: Whether or not to check the overridden method at runtime.
:raises AssertionError: if no match in super classes for the method name
:return: method with possibly added (if the method doesn't have one)
docstring from super class
Nr ��
_overrides� functools�partialr r s r r r 4 �@ � �<