Clarified to_dict function description.
This commit is contained in:
+4
-1
@@ -75,7 +75,10 @@ class Category:
|
||||
del score
|
||||
|
||||
def to_dict(self) -> dict:
|
||||
"""Saves category data as a python dictionary."""
|
||||
"""
|
||||
Saves category data as a python dictionary.
|
||||
Does not include category name. It should be the key of above data structure.
|
||||
"""
|
||||
data = {}
|
||||
data["ascending"] = self.ascending
|
||||
data["time_record"] = self.time_record
|
||||
|
||||
Reference in New Issue
Block a user