class documentation

class AttrsNextGenDefine(Attrs): (source)

View In Hierarchy

Implements the @attr.define decorator. See https://www.attrs.org/en/stable/api.html#next-generation-apis

Class Method make Create a PyTDFunction.
Method _handle_auto_attribs Undocumented
Constant _DEFAULT_ARGS Undocumented

Inherited from Attrs:

Class Method from_metadata Undocumented
Class Method make_dataclass Undocumented
Method decorate Processes the attrib members of a class.
Method init_name Attribute name as an __init__ keyword, could differ from attr.name.
Method to_metadata Undocumented

Inherited from Decorator (via Attrs):

Method __init__ Initialize a SimpleValue.
Method call Construct a decorator, and call it on the class.
Method get_initial_args Undocumented
Method make_init Undocumented
Method set_current_args Set current_args when constructing a class directly.
Method update_kwargs Update current_args with the Args passed to the decorator.
Instance Variable args Undocumented
Instance Variable partial_args Undocumented
Instance Variable _current_args Undocumented

Inherited from PyTDFunction (via Attrs, Decorator):

Method argcount Returns the minimum number of arguments needed for a call.
Method property_get Bind this value to the given self or cls.
Method set_function_defaults Attempts to set default arguments for a function's signatures.
Instance Variable bound_class Undocumented
Instance Variable kind Undocumented
Instance Variable module Undocumented
Instance Variable signatures Undocumented
Method _call_with_signatures Perform a function call that involves multiple signatures.
Method _can_match_multiple Undocumented
Method _combine_multiple_returns Combines multiple return types.
Method _get_mutation_to_unknown Mutation for making all type parameters in a list of instances "unknown".
Method _log_args Log the argument values.
Method _match_args_sequentially Undocumented
Instance Variable _mutated_type_parameters Undocumented
Instance Variable _return_types Undocumented
Instance Variable _signature_cache Undocumented

Inherited from Function (via Attrs, Decorator, PyTDFunction):

Method __repr__ Undocumented
Method match_args Check whether the given arguments can match the function signature.
Instance Variable cls Undocumented
Instance Variable is_abstract Undocumented
Instance Variable is_attribute_of_class Undocumented
Instance Variable is_classmethod Undocumented
Instance Variable is_method Undocumented
Method _extract_defaults Extracts defaults from a Variable, used by set_function_defaults.
Method _get_cell_variable_name Get the python variable name of a pytype Variable.

Inherited from SimpleValue (via Attrs, Decorator, PyTDFunction, Function):

Method cls.setter Undocumented
Method get_fullhash Undocumented
Method get_instance_type_parameter Get a cfg.Variable of the instance's values for the type parameter.
Method get_type_key Build a key from the information used to perform type matching.
Method has_instance_type_parameter Check if the key is in `instance_type_parameters`.
Method instantiate Create an instance of self.
Method maybe_missing_members.setter Undocumented
Method merge_instance_type_parameter Set the value of a type parameter.
Method set_class Set the __class__ of an instance, for code that does "x.__class__ = y.
Method update_caches Undocumented
Instance Variable members Undocumented
Property instance_type_parameters Undocumented
Property maybe_missing_members Undocumented
Method _call_helper Undocumented
Method _get_changestamps Undocumented
Method _get_class Undocumented
Method _unique_parameters Get unique parameter subtypes as variables.
Instance Variable _cached_changestamps Undocumented
Instance Variable _cls Undocumented
Instance Variable _fullhash Undocumented
Instance Variable _instance_type_parameters Undocumented
Instance Variable _maybe_missing_members Undocumented
Instance Variable _type_key Undocumented

Inherited from BaseValue (via Attrs, Decorator, PyTDFunction, Function, SimpleValue):

Method compute_mro Undocumented
Method default_mro Undocumented
Method get_default_fullhash Undocumented
Method get_default_type_key Gets a default type key. See get_type_key.
Method get_formal_type_parameter Get the class's type for the type parameter.
Method get_instance_type Get the type an instance of us would have.
Method get_own_new Get this value's __new__ method, if it isn't object.__new__.
Method get_special_attribute Fetch a special attribute (e.g., __get__, __iter__).
Method has_kwargs Return True if this is a function and has a **kwargs parameter.
Method has_varargs Return True if this is a function and has a *args parameter.
Method init_subclass Allow metaprogramming via __init_subclass__.
Method is_late_annotation Undocumented
Method module.setter Undocumented
Method official_name.setter Undocumented
Method register_instance Treating self as a class definition, register an instance of it.
Method should_replace_self_annot Undocumented
Method to_annotation_container Undocumented
Method to_binding Undocumented
Method to_pytd_def Get a PyTD definition for this object.
Method to_type Get a PyTD type representing this object, as seen at a node.
Method to_variable Build a variable out of this abstract value.
Method unique_parameter_values Get unique parameter subtypes as bindings.
Method update_official_name Update the official name.
Class Variable formal Undocumented
Instance Variable final Undocumented
Instance Variable from_annotation Undocumented
Instance Variable is_concrete Undocumented
Instance Variable is_decorated Undocumented
Instance Variable mro Undocumented
Instance Variable name Undocumented
Instance Variable slots Undocumented
Property all_template_names Undocumented
Property full_name Undocumented
Property official_name Undocumented
Property template Undocumented
Instance Variable _all_template_names Undocumented
Instance Variable _instance Undocumented
Instance Variable _module Undocumented
Instance Variable _official_name Undocumented
Instance Variable _template Undocumented

Inherited from ContextWeakrefMixin (via Attrs, Decorator, PyTDFunction, Function, SimpleValue, BaseValue):

Class Variable __slots__ Undocumented
Instance Variable ctx_weakref Undocumented
Property ctx Undocumented
@classmethod
def make(cls, ctx, module): (source)

Create a PyTDFunction. Args: name: The function name. ctx: The abstract context. module: The module that the function is in. pyval: Optionally, the pytd.Function object to use. Otherwise, it is fetched from the loader. pyval_name: Optionally, the name of the pytd.Function object to look up, if it is different from the function name. Returns: A new PyTDFunction.

def _handle_auto_attribs(self, auto_attribs, local_ops, cls_name): (source)
_DEFAULT_ARGS: ClassVar[Dict[str, Any]] = (source)

Undocumented

Value
{'init': True,
 'kw_only': False,
 'auto_attribs': None,
 'slots': True,
 'weakref_slots': True,
 'auto_exc': True,
 'auto_detect': True}