Closed joao-vitor-souza closed 1 year ago
This PR puts get_color, get_coordinates, get_dimensions, get_text_properties and find between functions out of generate_code scope, decreasing its complexity;
get_color
get_coordinates
get_dimensions
get_text_properties
find between
generate_code
Static type all functions, according to PEP 484;
Put this piece of code:
width, height = get_dimensions(element) x, y = get_coordinates(element)
which is commom to all if-elif-else statements, in the for-loop scope, so it's not necessary to write it in every statement;
Remove the unused make_label function;
make_label
Finally, it fixes the LICENSE link in README.md
LICENSE
README.md
This PR puts
get_color
,get_coordinates
,get_dimensions
,get_text_properties
andfind between
functions out ofgenerate_code
scope, decreasing its complexity;Static type all functions, according to PEP 484;
Put this piece of code:
which is commom to all if-elif-else statements, in the for-loop scope, so it's not necessary to write it in every statement;
Remove the unused
make_label
function;Finally, it fixes the
LICENSE
link inREADME.md