Pass True to boolean hatch example call rather than 1
@@ -16,21 +16,21 @@ hatch = msp.add_hatch(color=1, dxfattribs={
# The first path has to set flag: 1 = external
# flag const.BOUNDARY_PATH_POLYLINE is added (OR) automatically
-hatch.paths.add_polyline_path([(0, 0), (10, 0), (10, 10), (0, 10)], is_closed=1, flags=1)
+hatch.paths.add_polyline_path([(0, 0), (10, 0), (10, 10), (0, 10)], is_closed=True, flags=1)
doc.saveas(OUTDIR / 'solid_hatch_islands_01.dxf')
# The second path has to set flag: 16 = outermost
-hatch.paths.add_polyline_path([(1, 1), (9, 1), (9, 9), (1, 9)], is_closed=1, flags=16)
+hatch.paths.add_polyline_path([(1, 1), (9, 1), (9, 9), (1, 9)], is_closed=True, flags=16)
doc.saveas(OUTDIR / 'solid_hatch_islands_02.dxf')
# The third path has to set flag: 0 = default
-hatch.paths.add_polyline_path([(2, 2), (8, 2), (8, 8), (2, 8)], is_closed=1, flags=0)
+hatch.paths.add_polyline_path([(2, 2), (8, 2), (8, 8), (2, 8)], is_closed=True, flags=0)
doc.saveas(OUTDIR / 'solid_hatch_islands_03.dxf')
# The forth path has to set flag: 0 = default, and so on
-hatch.paths.add_polyline_path([(3, 3), (7, 3), (7, 7), (3, 7)], is_closed=1, flags=0)
+hatch.paths.add_polyline_path([(3, 3), (7, 3), (7, 7), (3, 7)], is_closed=True, flags=0)
doc.saveas(OUTDIR / 'solid_hatch_islands_04.dxf')
