summaryrefslogtreecommitdiffstats
path: root/fish_types.py
diff options
context:
space:
mode:
authorRaymond Hogenson <rayhogenson@openmailbox.org>2016-10-16 14:38:44 -0400
committerRaymond Hogenson <rayhogenson@openmailbox.org>2016-10-16 14:38:44 -0400
commit0f54d73feea16124e92ff6baab78e3d3d3d97fa3 (patch)
tree7a0900a3b130993040182befdeed0d501deb5a2b /fish_types.py
parentAdd __unicode__ to Vector (diff)
downloadbridge-0f54d73feea16124e92ff6baab78e3d3d3d97fa3.tar.zst
Use staticmethod instead of classmethod in by_type
Diffstat (limited to 'fish_types.py')
-rw-r--r--fish_types.py4
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':