Debianov / vtc-bot

The bot for the virtual transport company management (TruckersMP).
GNU General Public License v2.0
1 stars 2 forks source link

Add enforce listing #73

Closed Debianov closed 2 months ago

Debianov commented 3 months ago

In Case when you place one element it should be wrapped if it didn't manually.

Debianov commented 2 months ago

Changed my mind. It can be dangerous coz there are the Case's with a single DelayedExpression instance which is the list: DelayedExpression('list(mockLocator.guild.members)'). When this expression will be evaluated we get nested lists which need to be handled if this expression has been wrapped in list: [DelayedExpression('list(mockLocator.guild.members)')] -> [Member1].

I will describe this feature in the docs of the DelayedExpression class.