From 0f54d73feea16124e92ff6baab78e3d3d3d97fa3 Mon Sep 17 00:00:00 2001 From: Raymond Hogenson Date: Sun, 16 Oct 2016 14:38:44 -0400 Subject: Use staticmethod instead of classmethod in by_type --- fish_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_types.py b/fish_types.py index 73b58c1..61cd36a 100644 --- a/fish_types.py +++ b/fish_types.py @@ -28,8 +28,8 @@ class Fish(object): if not hasattr(self, 'theta_scale'): self.theta_scale = 12 - @classmethod - def by_type(cls, fish_type): + @staticmethod + def by_type(fish_type): if (fish_type == 'jellyfish'): return Jellyfish() if fish_type == 'dolphin': -- cgit v1.3.1