Skip to content

Commit

Permalink
Add docstring for find_quality_from_components
Browse files Browse the repository at this point in the history
  • Loading branch information
yuma-m committed Sep 12, 2021
1 parent c981c28 commit e234703
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pychord/quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ def set_quality(self, name, components):
self._qualities[name] = Quality(name, components)

def find_quality_from_components(self, components):
""" Find a quality from components
:param Tuple[int] components: components of quality
"""
for q in self._qualities.values():
if q.components == components:
if q.components == list(components):
return copy.deepcopy(q)
return None

0 comments on commit e234703

Please sign in to comment.