asyml / asyml/texar

Importing ABC directly from collections will be removed in Python 3.10

Open
#287 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.