MCPcopy Create free account

hub / github.com/marin-community/draccus / functions

Functions407 in github.com/marin-community/draccus

Functiontest_encode_nested_dataclass
()
tests/test_encoding.py:73
Functiontest_encode_optional_adult
()
tests/test_optional_choice_type.py:84
Functiontest_encode_optional_child
()
tests/test_optional_choice_type.py:72
Functiontest_encode_optional_none
()
tests/test_optional_choice_type.py:67
Functiontest_encode_path
()
tests/test_encoding.py:201
Functiontest_encode_something
(simple_attribute)
tests/test_decoding.py:23
Functiontest_encode_tuple
()
tests/test_encoding.py:43
Functiontest_enum_attributes_work
()
tests/test_base.py:142
Functiontest_exit_on_error
()
tests/test_base.py:218
Functiontest_future_annotations
()
tests/test_future_annotations.py:31
Functiontest_generic_params
()
tests/test_generic_params.py:24
Functiontest_get_preferred_help_text
()
tests/test_preferred_help.py:27
Functiontest_help_displays_class_docstring_text
()
tests/test_base.py:138
Functiontest_invalid_choice
()
tests/test_optional_choice_type.py:57
Functiontest_invalid_fields_adult
()
tests/test_optional_choice_type.py:62
Functiontest_is_choicetype
()
tests/test_choice_types.py:59
Functiontest_is_enum
(t: Type)
tests/test_utils.py:87
Functiontest_is_list
(t: Type)
tests/test_utils.py:43
Functiontest_is_list_of_dataclasses
(t: Type)
tests/test_utils.py:55
Functiontest_is_tuple
(t: Type)
tests/test_utils.py:28
Functiontest_list_field
()
tests/test_utils.py:91
Functiontest_list_help_text
()
tests/test_lists.py:164
Functiontest_list_of_dataclasses
()
tests/test_lists.py:134
Functiontest_list_one_element
(simple_attribute)
tests/test_lists.py:15
Functiontest_literal_argparse_invalid
Test that invalid literal values are caught by argparse.
tests/test_literals.py:143
Functiontest_literal_argparse_valid
Test that literal types work correctly with argparse.
tests/test_literals.py:113
Functiontest_literal_help_text
Test that help text is generated correctly for literal types.
tests/test_literals.py:98
Functiontest_load_backwards_compatibility
()
tests/test_load.py:45
Functiontest_load_from_file
(tmp_path)
tests/test_load.py:19
Functiontest_load_hyperparameters_with_include
(HyperParameters)
tests/test_yaml_inclusion.py:16
Functiontest_load_hyperparameters_with_include
(HyperParameters)
tests/test_yaml_inclusion_cli.py:16
Functiontest_load_invalid_input
()
tests/test_load.py:54
Functiontest_loads_from_string
()
tests/test_load.py:37
Functiontest_merge_include_hyperparameters
(HyperParameters)
tests/test_yaml_inclusion.py:41
Functiontest_merge_include_hyperparameters
(HyperParameters)
tests/test_yaml_inclusion_cli.py:52
Functiontest_mixed_literal_invalid
(snapshot)
tests/test_literals.py:88
Functiontest_mixed_literal_valid
()
tests/test_literals.py:71
Functiontest_nested_future_annotations
()
tests/test_future_annotations.py:36
Functiontest_no_default_argument
(simple_attribute)
tests/test_default_args.py:13
Functiontest_not_passing_required_argument_raises_error
(simple_attribute)
tests/test_base.py:32
Functiontest_not_providing_required_argument_name_but_no_value_throws_error
(some_type)
tests/test_base.py:96
Functiontest_not_providing_required_argument_throws_error
(some_type)
tests/test_base.py:85
Functiontest_numeric_literal_invalid
(snapshot)
tests/test_literals.py:65
Functiontest_numeric_literal_valid
()
tests/test_literals.py:54
Functiontest_optional_choice_adult
()
tests/test_optional_choice_type.py:47
Functiontest_optional_choice_child
()
tests/test_optional_choice_type.py:52
Functiontest_optional_choice_empty
()
tests/test_optional_choice_type.py:42
Functiontest_optional_int
()
tests/test_optional.py:83
Functiontest_optional_list_of_ints
()
tests/test_optional.py:105
Functiontest_optional_parameter_group
Reproduces issue #28 : https://github.com/lebrice/SimpleParsing/issues/28#issue-663689719
tests/test_optional.py:48
Functiontest_optional_seed
Test that a value marked as Optional works fine. (Reproduces https://github.com/lebrice/SimpleParsing/issues/14#issue-562538623)
tests/test_optional.py:18
Functiontest_optional_str
()
tests/test_optional.py:93
Functiontest_optional_union
()
tests/test_optional_union.py:13
Functiontest_optional_without_default
()
tests/test_optional.py:116
Functiontest_parse_base_simple_works
()
tests/test_base.py:131
Functiontest_parse_multiple_with_list_attributes
( item_type: Type, passed_values: List[List[Any]], )
tests/test_lists.py:87
Functiontest_parsing_twice
()
tests/test_base.py:150
Functiontest_passing_enum_to_choice
()
tests/test_enums.py:29
Functiontest_passing_enum_to_choice_from_value
()
tests/test_enums.py:43
Functiontest_passing_enum_to_choice_is_same_as_enum_attr
()
tests/test_enums.py:75
Functiontest_passing_enum_to_choice_no_default_makes_required_arg
()
tests/test_enums.py:63
Functiontest_plugin_registry_argparse
()
tests/test_argparse_choice_types_plugin.py:16
Functiontest_qname_plugin_registry_decode_fallback
()
tests/test_choice_types.py:75
Functiontest_qname_plugin_registry_does_not_swallow_import_errors
(monkeypatch)
tests/test_choice_types.py:99
Functiontest_qname_plugin_registry_encode_fallback
()
tests/test_choice_types.py:84
Functiontest_qname_plugin_registry_nested_qualname_decode_fallback
()
tests/test_choice_types.py:120
Functiontest_qname_plugin_registry_nested_qualname_encode_fallback
()
tests/test_choice_types.py:131
Functiontest_qname_plugin_registry_rejects_non_subclass_name_lookup
()
tests/test_choice_types.py:94
Functiontest_registry_decode_subtype_without_type
()
tests/test_choice_types.py:47
Functiontest_required_attributes_works
(ContainerClass)
tests/test_lists.py:59
Functiontest_reserved_config_word
()
tests/test_decoding.py:126
Functiontest_set_field
()
tests/test_utils.py:101
Functiontest_simple_subclassing_no_args
()
tests/test_inheritance.py:34
Functiontest_simple_subclassing_with_args
()
tests/test_inheritance.py:40
Functiontest_single_element_list
(ContainerClass)
tests/test_lists.py:51
Functiontest_string_literal_invalid
(snapshot)
tests/test_literals.py:48
Functiontest_string_literal_valid
()
tests/test_literals.py:37
Functiontest_subclasses_with_same_base_class_no_args
()
tests/test_inheritance.py:46
Functiontest_subclasses_with_same_base_class_with_args
()
tests/test_inheritance.py:56
Functiontest_super_nesting
()
tests/test_decoding.py:135
Functiontest_tuple_elipsis_takes_any_number_of_args
()
tests/test_tuples.py:31
Functiontest_tuple_with_n_items_takes_only_n_values
(snapshot)
tests/test_tuples.py:16
Functiontest_union_argparse_dict
()
tests/test_union.py:161
Functiontest_union_error_message_atomics
(snapshot)
tests/test_union.py:77
Functiontest_union_error_message_dataclasses
(snapshot)
tests/test_union.py:139
Functiontest_union_error_message_nested
(snapshot)
tests/test_union.py:88
Functiontest_union_type
()
tests/test_union.py:19
Functiontest_union_types_39
()
tests/test_union.py:34
Functiontest_union_types_39_optional
()
tests/test_union.py:49
Functiontest_union_types_39_optional_nested
()
tests/test_union.py:65
Functiontest_using_a_Type_type
()
tests/test_base.py:161
Functiontest_weird_structure
both is-a, and has-a at the same time, a very weird inheritance structure
tests/test_inheritance.py:65
Methodtitle
(self)
draccus/wrappers/dataclass_wrapper.py:130
Methodtitle
(self)
draccus/wrappers/choice_wrapper.py:41
Methodtitle
(self)
draccus/wrappers/choice_wrapper.py:177
Methodtype
(self)
draccus/wrappers/wrapper.py:76
Methodtype
(self)
draccus/wrappers/dataclass_wrapper.py:163
Methodtype
Returns the wrapped field's type annotation.
draccus/wrappers/field_wrapper.py:262
Methodtype
(self)
draccus/wrappers/choice_wrapper.py:132
Methodtype
(self)
draccus/wrappers/choice_wrapper.py:173
← previousnext →301–400 of 407, ranked by callers