diff options
| author | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-10-16 14:38:44 -0400 |
|---|---|---|
| committer | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-10-16 14:38:44 -0400 |
| commit | 0f54d73feea16124e92ff6baab78e3d3d3d97fa3 (patch) | |
| tree | 7a0900a3b130993040182befdeed0d501deb5a2b | |
| parent | 7bb99edd9ac78bee36b6f748f3016a27ace9afce (diff) | |
| download | bridge-0f54d73feea16124e92ff6baab78e3d3d3d97fa3.tar.zst | |
Use staticmethod instead of classmethod in by_type
| -rw-r--r-- | fish_types.py | 4 |
1 files 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': |
