BlogDocs

Allow converter.optional to take a Converter such as converter.pipe as its argument(#1372)

Merged
Comparing
filbranden:optionalpipe1
(
d2ade0d
) with
main
(
ee0f19b
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
8
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

test_eq_equal
bench/test_benchmarks.py::test_eq_equal
0%
872.7 µs
871.8 µs
test_create_simple_class
bench/test_benchmarks.py::test_create_simple_class
0%
1.5 s
1.5 s
test_create_frozen_class
bench/test_benchmarks.py::test_create_frozen_class
0%
1.8 s
1.8 s
test_hash
bench/test_benchmarks.py::test_hash
0%
1.1 ms
1.1 ms
test_eq_unequal
bench/test_benchmarks.py::test_eq_unequal
0%
670.7 µs
670.7 µs
test_create_simple_class_make_class
bench/test_benchmarks.py::test_create_simple_class_make_class
0%
1.5 s
1.5 s
test_instantiate_no_defaults
bench/test_benchmarks.py::test_instantiate_no_defaults
0%
1.2 ms
1.2 ms
test_instantiate_with_defaults
bench/test_benchmarks.py::test_instantiate_with_defaults
0%
1.2 ms
1.2 ms

Commits

Click on a commit to change the comparison range
base
main
ee0f19b
0%
Allow converter.optional to take a converter such as converter.pipe as its argument
9b22892
4 days ago
by filbranden
0%
Only turn optional into a Converter if needed
cc8e100
4 days ago
by filbranden
0%
Move call to Converter constructor to the end of optional() The constructor consumes __annotations__, so move the constructor call to after those have been set on the optional_converter function
4a0da06
3 days ago
by filbranden
0%
Merge branch 'main' into optionalpipe1
9450c77
1 day ago
by hynek
0%
Update tests/test_converters.py
60af541
2 hours ago
by hynek
0%
Update tests/test_converters.py
d2ade0d
2 hours ago
by hynek
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.