class documentation

class _ProxyLookup:

Known subclasses: werkzeug.local._ProxyIOp

View In Hierarchy

Descriptor that handles proxied attribute lookup for LocalProxy.
Parameters
fThe built-in function this attribute is accessed through. Instead of looking up the special method, the function call is redone on the object.
fallbackReturn this function if the proxy is unbound instead of raising a RuntimeError.
is​_attrThis proxied name is an attribute, not a function. Call the fallback immediately to get the value.
class​_valueValue to return when accessed from the LocalProxy class directly. Used for __doc__ so building docs still works.
Method __call__ No summary
Method __get__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __set​_name__ Undocumented
Class Variable __slots__ Undocumented
Instance Variable bind​_f Undocumented
Instance Variable class​_value Undocumented
Instance Variable fallback Undocumented
Instance Variable is​_attr Undocumented
Instance Variable name Undocumented
def __call__(self, instance, *args, **kwargs):
Support calling unbound methods from the class. For example, this happens with copy.copy, which does type(x).__copy__(x). type(x) can't be proxied, so it returns the proxy type and descriptor.
Parameters
instance:LocalProxyUndocumented
*args:t.AnyUndocumented
**kwargs:t.AnyUndocumented
Returns
t.AnyUndocumented
def __get__(self, instance, owner=None):

Undocumented

Parameters
instance:LocalProxyUndocumented
owner:t.Optional[type]Undocumented
Returns
t.AnyUndocumented
def __init__(self, f=None, fallback=None, class_value=None, is_attr=False):

Undocumented

Parameters
f:t.Optional[t.Callable]Undocumented
fallback:t.Optional[t.Callable]Undocumented
class​_value:t.Optional[t.Any]Undocumented
is​_attr:boolUndocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def __set_name__(self, owner, name):

Undocumented

Parameters
owner:LocalProxyUndocumented
name:strUndocumented
__slots__: tuple[str, ...] =

Undocumented

bind_f =

Undocumented

class_value =

Undocumented

fallback =

Undocumented

is_attr =

Undocumented

name =

Undocumented