If the name parameter in the class __init__() contains white spaces, the weight algorithm methods will crash later on, as the internal weight variable name will be constructed from it and therefore evaluate into a syntax error.
We can either forbid white spaces in the name and raise or automatically replace them with underscores.
If the
name
parameter in the class__init__()
contains white spaces, the weight algorithm methods will crash later on, as the internal weight variable name will be constructed from it and therefore evaluate into a syntax error.We can either forbid white spaces in the name and raise or automatically replace them with underscores.
🤦♂️