Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Conversation

@haigh1510
Copy link

Error description: TypeError: sequence item 0: expected str instance, int found

Error description: `TypeError: sequence item 0: expected str instance, int found`
DaGuT added a commit to DaGuT/backtrader_plotting that referenced this pull request Apr 15, 2022
Hi, if you have parameter with list of something other than list (e.g. list of dicts), you'll get a error `TypeError: sequence item 0: expected str instance, <YOUR_NON_STR_TYPE_HERE> found`.

With this fix you'll convert everything to string recursively, thus preserving better text output.

Slightly better than verybadsoldier#88
DaGuT added a commit to DaGuT/backtrader_plotting that referenced this pull request Apr 15, 2022
Hi, if you have parameter with list of something other than list (e.g. list of dicts), you'll get a error `TypeError: sequence item 0: expected str instance, <YOUR_NON_STR_TYPE_HERE> found`.

With this fix you'll convert everything to string recursively, thus preserving better text output.

Slightly better than verybadsoldier#88
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant