arpruss / raspberryjammod

Raspberry Jam Mod - a Mod Forge Minecraft mod implementing most of Raspberry Juice/Pi API
http://www.instructables.com/id/Python-coding-for-Minecraft/
Other
348 stars 94 forks source link

Use collections.abc.Iterable for type checking and flattenning #67

Open sinewalker opened 1 year ago

sinewalker commented 1 year ago

In Python 3.3, the collections.Iterable class was moved into its own module

Instead, now test the Abstract Base Class Iterable type.

https://docs.python.org/3/library/collections.abc.html

This fixes the error module 'collections' has not attribute 'Iterable' when calling methods such as minecraft.postToChat()

Fixes #68

Greeniac commented 5 months ago

Thank you, it works.