Importing ABC from collections has been deprecated and will be removed in Python 3.10
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 470
- Forks
- 231
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 6
Description
xblock/test/test_user_service.py
36: assert isinstance(current_user.emails, collections.Iterable)
39: assert isinstance(current_user.opt_attrs, collections.Mapping)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with xblock/test/test_user_service.py at lines 36 and 39, where the deprecated collections ABCs are used. Run the focused test file and confirm the compatibility issue is addressed for Python 3.10 while the user-service assertions still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100