Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marin-community/draccus
/ functions
Functions
407 in github.com/marin-community/draccus
⨍
Functions
407
◇
Types & classes
156
Function
test_encode_nested_dataclass
()
tests/test_encoding.py:73
Function
test_encode_optional_adult
()
tests/test_optional_choice_type.py:84
Function
test_encode_optional_child
()
tests/test_optional_choice_type.py:72
Function
test_encode_optional_none
()
tests/test_optional_choice_type.py:67
Function
test_encode_path
()
tests/test_encoding.py:201
Function
test_encode_something
(simple_attribute)
tests/test_decoding.py:23
Function
test_encode_tuple
()
tests/test_encoding.py:43
Function
test_enum_attributes_work
()
tests/test_base.py:142
Function
test_exit_on_error
()
tests/test_base.py:218
Function
test_future_annotations
()
tests/test_future_annotations.py:31
Function
test_generic_params
()
tests/test_generic_params.py:24
Function
test_get_preferred_help_text
()
tests/test_preferred_help.py:27
Function
test_help_displays_class_docstring_text
()
tests/test_base.py:138
Function
test_invalid_choice
()
tests/test_optional_choice_type.py:57
Function
test_invalid_fields_adult
()
tests/test_optional_choice_type.py:62
Function
test_is_choicetype
()
tests/test_choice_types.py:59
Function
test_is_enum
(t: Type)
tests/test_utils.py:87
Function
test_is_list
(t: Type)
tests/test_utils.py:43
Function
test_is_list_of_dataclasses
(t: Type)
tests/test_utils.py:55
Function
test_is_tuple
(t: Type)
tests/test_utils.py:28
Function
test_list_field
()
tests/test_utils.py:91
Function
test_list_help_text
()
tests/test_lists.py:164
Function
test_list_of_dataclasses
()
tests/test_lists.py:134
Function
test_list_one_element
(simple_attribute)
tests/test_lists.py:15
Function
test_literal_argparse_invalid
Test that invalid literal values are caught by argparse.
tests/test_literals.py:143
Function
test_literal_argparse_valid
Test that literal types work correctly with argparse.
tests/test_literals.py:113
Function
test_literal_help_text
Test that help text is generated correctly for literal types.
tests/test_literals.py:98
Function
test_load_backwards_compatibility
()
tests/test_load.py:45
Function
test_load_from_file
(tmp_path)
tests/test_load.py:19
Function
test_load_hyperparameters_with_include
(HyperParameters)
tests/test_yaml_inclusion.py:16
Function
test_load_hyperparameters_with_include
(HyperParameters)
tests/test_yaml_inclusion_cli.py:16
Function
test_load_invalid_input
()
tests/test_load.py:54
Function
test_loads_from_string
()
tests/test_load.py:37
Function
test_merge_include_hyperparameters
(HyperParameters)
tests/test_yaml_inclusion.py:41
Function
test_merge_include_hyperparameters
(HyperParameters)
tests/test_yaml_inclusion_cli.py:52
Function
test_mixed_literal_invalid
(snapshot)
tests/test_literals.py:88
Function
test_mixed_literal_valid
()
tests/test_literals.py:71
Function
test_nested_future_annotations
()
tests/test_future_annotations.py:36
Function
test_no_default_argument
(simple_attribute)
tests/test_default_args.py:13
Function
test_not_passing_required_argument_raises_error
(simple_attribute)
tests/test_base.py:32
Function
test_not_providing_required_argument_name_but_no_value_throws_error
(some_type)
tests/test_base.py:96
Function
test_not_providing_required_argument_throws_error
(some_type)
tests/test_base.py:85
Function
test_numeric_literal_invalid
(snapshot)
tests/test_literals.py:65
Function
test_numeric_literal_valid
()
tests/test_literals.py:54
Function
test_optional_choice_adult
()
tests/test_optional_choice_type.py:47
Function
test_optional_choice_child
()
tests/test_optional_choice_type.py:52
Function
test_optional_choice_empty
()
tests/test_optional_choice_type.py:42
Function
test_optional_int
()
tests/test_optional.py:83
Function
test_optional_list_of_ints
()
tests/test_optional.py:105
Function
test_optional_parameter_group
Reproduces issue #28 : https://github.com/lebrice/SimpleParsing/issues/28#issue-663689719
tests/test_optional.py:48
Function
test_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
Function
test_optional_str
()
tests/test_optional.py:93
Function
test_optional_union
()
tests/test_optional_union.py:13
Function
test_optional_without_default
()
tests/test_optional.py:116
Function
test_parse_base_simple_works
()
tests/test_base.py:131
Function
test_parse_multiple_with_list_attributes
( item_type: Type, passed_values: List[List[Any]], )
tests/test_lists.py:87
Function
test_parsing_twice
()
tests/test_base.py:150
Function
test_passing_enum_to_choice
()
tests/test_enums.py:29
Function
test_passing_enum_to_choice_from_value
()
tests/test_enums.py:43
Function
test_passing_enum_to_choice_is_same_as_enum_attr
()
tests/test_enums.py:75
Function
test_passing_enum_to_choice_no_default_makes_required_arg
()
tests/test_enums.py:63
Function
test_plugin_registry_argparse
()
tests/test_argparse_choice_types_plugin.py:16
Function
test_qname_plugin_registry_decode_fallback
()
tests/test_choice_types.py:75
Function
test_qname_plugin_registry_does_not_swallow_import_errors
(monkeypatch)
tests/test_choice_types.py:99
Function
test_qname_plugin_registry_encode_fallback
()
tests/test_choice_types.py:84
Function
test_qname_plugin_registry_nested_qualname_decode_fallback
()
tests/test_choice_types.py:120
Function
test_qname_plugin_registry_nested_qualname_encode_fallback
()
tests/test_choice_types.py:131
Function
test_qname_plugin_registry_rejects_non_subclass_name_lookup
()
tests/test_choice_types.py:94
Function
test_registry_decode_subtype_without_type
()
tests/test_choice_types.py:47
Function
test_required_attributes_works
(ContainerClass)
tests/test_lists.py:59
Function
test_reserved_config_word
()
tests/test_decoding.py:126
Function
test_set_field
()
tests/test_utils.py:101
Function
test_simple_subclassing_no_args
()
tests/test_inheritance.py:34
Function
test_simple_subclassing_with_args
()
tests/test_inheritance.py:40
Function
test_single_element_list
(ContainerClass)
tests/test_lists.py:51
Function
test_string_literal_invalid
(snapshot)
tests/test_literals.py:48
Function
test_string_literal_valid
()
tests/test_literals.py:37
Function
test_subclasses_with_same_base_class_no_args
()
tests/test_inheritance.py:46
Function
test_subclasses_with_same_base_class_with_args
()
tests/test_inheritance.py:56
Function
test_super_nesting
()
tests/test_decoding.py:135
Function
test_tuple_elipsis_takes_any_number_of_args
()
tests/test_tuples.py:31
Function
test_tuple_with_n_items_takes_only_n_values
(snapshot)
tests/test_tuples.py:16
Function
test_union_argparse_dict
()
tests/test_union.py:161
Function
test_union_error_message_atomics
(snapshot)
tests/test_union.py:77
Function
test_union_error_message_dataclasses
(snapshot)
tests/test_union.py:139
Function
test_union_error_message_nested
(snapshot)
tests/test_union.py:88
Function
test_union_type
()
tests/test_union.py:19
Function
test_union_types_39
()
tests/test_union.py:34
Function
test_union_types_39_optional
()
tests/test_union.py:49
Function
test_union_types_39_optional_nested
()
tests/test_union.py:65
Function
test_using_a_Type_type
()
tests/test_base.py:161
Function
test_weird_structure
both is-a, and has-a at the same time, a very weird inheritance structure
tests/test_inheritance.py:65
Method
title
(self)
draccus/wrappers/dataclass_wrapper.py:130
Method
title
(self)
draccus/wrappers/choice_wrapper.py:41
Method
title
(self)
draccus/wrappers/choice_wrapper.py:177
Method
type
(self)
draccus/wrappers/wrapper.py:76
Method
type
(self)
draccus/wrappers/dataclass_wrapper.py:163
Method
type
Returns the wrapped field's type annotation.
draccus/wrappers/field_wrapper.py:262
Method
type
(self)
draccus/wrappers/choice_wrapper.py:132
Method
type
(self)
draccus/wrappers/choice_wrapper.py:173
← previous
next →
301–400 of 407, ranked by callers