File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -580,10 +580,10 @@ def __init__(
580
580
self .service_category = service_category
581
581
self .service_capabilities_bytes = service_capabilities_bytes
582
582
583
- def to_string (self , details : List [str ] = [] ) -> str :
583
+ def to_string (self , details : Optional [ List [str ]] = None ) -> str :
584
584
attributes = ',' .join (
585
585
[name_or_number (AVDTP_SERVICE_CATEGORY_NAMES , self .service_category )]
586
- + details
586
+ + ( details or [])
587
587
)
588
588
return f'ServiceCapabilities({ attributes } )'
589
589
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ def __init__(
345
345
uuid : Union [str , UUID ],
346
346
characteristics : List [Characteristic ],
347
347
primary = True ,
348
- included_services : List [Service ] = [] ,
348
+ included_services : Iterable [Service ] = () ,
349
349
) -> None :
350
350
# Convert the uuid to a UUID object if it isn't already
351
351
if isinstance (uuid , str ):
@@ -361,7 +361,7 @@ def __init__(
361
361
uuid .to_pdu_bytes (),
362
362
)
363
363
self .uuid = uuid
364
- self .included_services = included_services [:]
364
+ self .included_services = list ( included_services )
365
365
self .characteristics = characteristics [:]
366
366
self .primary = primary
367
367
@@ -395,7 +395,7 @@ def __init__(
395
395
self ,
396
396
characteristics : List [Characteristic ],
397
397
primary : bool = True ,
398
- included_services : List [Service ] = [] ,
398
+ included_services : Iterable [Service ] = () ,
399
399
) -> None :
400
400
super ().__init__ (self .UUID , characteristics , primary , included_services )
401
401
You can’t perform that action at this time.
0 commit comments