Replace unsafe default values

This commit is contained in:
Josh Wu
2024-09-18 21:09:08 +08:00
parent 56ca19600b
commit f06a35713f
2 changed files with 5 additions and 5 deletions

View File

@@ -580,10 +580,10 @@ class ServiceCapabilities:
self.service_category = service_category
self.service_capabilities_bytes = service_capabilities_bytes
def to_string(self, details: List[str] = []) -> str:
def to_string(self, details: Optional[List[str]] = None) -> str:
attributes = ','.join(
[name_or_number(AVDTP_SERVICE_CATEGORY_NAMES, self.service_category)]
+ details
+ (details or [])
)
return f'ServiceCapabilities({attributes})'