MCPcopy Create free account

hub / github.com/hukkin/tomli-w / functions

Functions41 in github.com/hukkin/tomli-w

↓ 5 callersFunctionbenchmark
( name: str, run_count: int, func: Callable, col_width: tuple, compare_to: float | No
benchmark/run.py:24
↓ 3 callersFunctionformat_key_part
(part: str)
src/tomli_w/_writer.py:171
↓ 3 callersFunctionformat_literal
(obj: object, ctx: Context, *, nest_level: int = 0)
src/tomli_w/_writer.py:100
↓ 2 callersFunctionformat_inline_table
(obj: Mapping, ctx: Context)
src/tomli_w/_writer.py:135
↓ 2 callersFunctionformat_string
(s: str, *, allow_multiline: bool)
src/tomli_w/_writer.py:185
↓ 2 callersFunctiongen_table_chunks
( table: Mapping[str, Any], ctx: Context, *, name: str, inside_aot: bool = False, )
src/tomli_w/_writer.py:63
↓ 2 callersFunctionreplace_nans
Replace NaNs with a sentinel object to fix the problem that NaN is not equal to another NaN.
tests/test_valid.py:37
↓ 1 callersFunctionformat_decimal
(obj: Decimal)
src/tomli_w/_writer.py:126
↓ 1 callersFunctionformat_inline_array
(obj: tuple | list, ctx: Context, nest_level: int)
src/tomli_w/_writer.py:156
↓ 1 callersFunctionis_aot
Decides if an object behaves as an array of tables (i.e. a nonempty list of dicts).
src/tomli_w/_writer.py:215
↓ 1 callersFunctionis_suitable_inline_table
Use heuristics to decide if the inline-style representation is a good choice for a given table.
src/tomli_w/_writer.py:225
↓ 1 callersFunctionrun
(run_count: int)
benchmark/run.py:46
Method__init__
(self, allow_multiline: bool, indent: int)
src/tomli_w/_writer.py:34
Functiondump
( obj: Mapping[str, Any], fp: IO[bytes], /, *, multiline_strings: bool = False, indent
src/tomli_w/_writer.py:43
Functiondumps
( obj: Mapping[str, Any], /, *, multiline_strings: bool = False, indent: int = 4 )
src/tomli_w/_writer.py:56
Functiontest_array_indent_override
()
tests/test_style.py:277
Functiontest_array_of_long_tables
()
tests/test_style.py:125
Functiontest_array_of_short_tables
()
tests/test_style.py:146
Functiontest_array_of_tables_containing_lists
()
tests/test_style.py:96
Functiontest_decimal
()
tests/test_types.py:6
Functiontest_dont_write_redundant_tables
()
tests/test_style.py:28
Functiontest_dump
(tmp_path)
tests/test_write_file.py:4
Functiontest_empty_doc
()
tests/test_style.py:24
Functiontest_example_issue_12
()
tests/test_style.py:161
Functiontest_for_profiler
()
tests/test_for_profiler.py:22
Functiontest_invalid_key__falsy
()
tests/test_invalid.py:25
Functiontest_invalid_key__truthy
()
tests/test_invalid.py:34
Functiontest_invalid_time
()
tests/test_invalid.py:14
Functiontest_invalid_type_nested
()
tests/test_invalid.py:8
Functiontest_multiline
()
tests/test_style.py:34
Functiontest_multiline_in_aot
()
tests/test_style.py:256
Functiontest_negative_indent
()
tests/test_invalid.py:20
Functiontest_nested_keys
()
tests/test_style.py:76
Functiontest_newline_before_table
()
tests/test_style.py:6
Functiontest_non_trivial_nesting
()
tests/test_style.py:205
Functiontest_obj_to_str_mapping
(obj, expected_str, multiline_strings)
tests/test_valid.py:55
Functiontest_only_tables
()
tests/test_style.py:48
Functiontest_table_with_empty_array
()
tests/test_style.py:193
Functiontest_tricky_keys
()
tests/test_style.py:58
Functiontest_tuple
()
tests/test_types.py:34
Functiontest_valid
(valid)
tests/test_valid.py:24