ProxyMutableCollection

class app.portfolio.collections.proxy.collection.ProxyMutableCollection[source]

Bases: ProxyCollection, Generic

Inheritance diagram of ProxyMutableCollection

Inheritance Diagram for ProxyMutableCollection

Methods

get_mutable_collection_type(cls[, source])

Resolve and cache the concrete parent argument defined by the descriptor.

classmethod get_mutable_collection_type(cls: type[T], source: type[T] | None = None, **kwargs: Unpack[GetConcreteParentArgumentKwargs]) type[R]

Resolve and cache the concrete parent argument defined by the descriptor.

The descriptor caches the result per owning class via instance_lru_cache() so repeated introspections remain constant time.

Raises:

GenericsError – If the underlying parent argument cannot be resolved to a concrete type.

Parameters:
Return type:

type[R]