Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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