aturfah / cmplxsys530-final

Final Project for Complex Systems 530 WN18
MIT License
2 stars 2 forks source link

Make External Class Functions Static Methods #182

Open aturfah opened 5 years ago

aturfah commented 5 years ago
@staticmethod
def _infer_from_speed_range(min_speed, max_speed):
    """Player method to specify how to calculate speed range."""
    return (min_speed + max_speed) / 2

A class can have static methods that don't use self. Classes have these methods put as external methods because they don't call self, but they really should be static methods.