Closed rraadd88 closed 1 year ago
When dna_features_viewer (installed from pypi v3.1.1) was imported, using this command: import dna_features_viewer, it produced concatenation errors:
dna_features_viewer
import dna_features_viewer
TypeError: can only concatenate tuple (not "str") to tuple
aa1
'*'
TypeError: can only concatenate tuple (not "list") to tuple
aa3
['*']
The suggested modification — where respective tuples and strings are converted to lists before concatenation — should fix these errors.
Thank you for the contribution -- an equivalent solution has been merged that also handles previous Biopython versions.
When
dna_features_viewer
(installed from pypi v3.1.1) was imported, using this command:import dna_features_viewer
, it produced concatenation errors:TypeError: can only concatenate tuple (not "str") to tuple
because tuple calledaa1
was being concatenated to a string'*'
, andTypeError: can only concatenate tuple (not "list") to tuple
because tuple calledaa3
was being concatenated to a list['*']
.The suggested modification — where respective tuples and strings are converted to lists before concatenation — should fix these errors.