Importing ABC directly from collections will be removed in Python 3.10
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
Use collections.abc instead
```
texar/tf/modules/encoders/hierarchical_encoders.py
259: if not isinstance(medium, collections.Sequence):
358: if isinstance(x, collections.Sequence):
texar/tf/utils/utils.py
580: if isinstance(value, collections.MutableMapping):
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the references listed in texar/tf/modules/encoders/hierarchical_encoders.py at lines 259 and 358, and texar/tf/utils/utils.py at line 580. Check the affected imports and run the relevant test suite or Python 3.10 checks; done means these collection abstract base class references no longer emit the compatibility warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100