Skip to content

Conversation

@sinewalker
Copy link

@sinewalker sinewalker commented Mar 18, 2023

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

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
@sinewalker sinewalker changed the title Use collectiotns.abc.Iterable for type checking and flattenning Use collections.abc.Iterable for type checking and flattenning Mar 18, 2023
@Greeniac
Copy link

Thank you, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get error module 'collections' has no attribute 'Iterable' on Python 3.10

2 participants