Put this in Issues, but it may be better off here #1852
-
When importing pint, util.py throws "TypeError: 'ABCMeta' object is not subscriptable" as shown. Are there any changes I can make to the pint code to make it work? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
There is a potential solution here: https://stackoverflow.com/questions/59955751/abcmeta-object-is-not-subscriptable-when-trying-to-annotate-a-hash-variable |
Beta Was this translation helpful? Give feedback.
-
What I do not understand is why this is not failing in our tests. |
Beta Was this translation helpful? Give feedback.
By typing.Iterable according to that post. But I still do not understand why it works with our tests. I guess Spyder is checking types in a way our code is not.