When svg file that contains polylines or polygons is converted to paths using Document method flatten_all_paths() an exception occurring in polyline2pathd() method:
TypeError: expected string or bytes-like object
Changing polyline2pathd() method to receive polyline instead of polyline_d makes both methods: flatten_all_paths() and svg2paths() working correctly when converting polylines and polygons.
When svg file that contains polylines or polygons is converted to paths using Document method flatten_all_paths() an exception occurring in polyline2pathd() method: TypeError: expected string or bytes-like object
Changing polyline2pathd() method to receive polyline instead of polyline_d makes both methods: flatten_all_paths() and svg2paths() working correctly when converting polylines and polygons.