105 def get_flat_values(self: "SocialProfile", field: str) -> list:
106 match field:
107 case "circle_symmetrical":
108 """because circle is assymetrical by default, adding the user does not add them to your circle.109 adding is being managed by the views so only certain cases allow adding in circle 2-way"""
110 list_one = self.circle_symmetrical.all()
111 list_two = self.circle.all()
The string statement has not been assigned to anything. This is pointless and should be removed if not necessary. In case this is supposed to describe what's happening in the code, it is recommended to use comments or docstrings instead.
'Define a function to add 2 numbers here.'
def add(a, b):
return a + b
Use Comments:
# Define a function to add 2 numbers here.
def add(a, b):
return a + b
or, use docstrings:
def add(a, b):
'''Function to add 2 numbers here.'''
return a + b