Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unable to install both returns and classes together

Open
#386 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
build-system

Research direction

Reproduce the conflict with Python 3.9 by running poetry add returns and poetry add classes using the reported versions. Inspect the dependency metadata for classes 0.4.0 and its typing_extensions constraint; done means Poetry can resolve both packages together without version-solving failure.

Written by the indexing model from the issue text.

Description

bug

Bug report

What's wrong

Just doing a simple poetry add returns and poetry add classes results in:

 Because no versions of classes match >0.4.0,<0.5.0
   and classes (0.4.0) depends on typing_extensions (>=3.10,<4.0), classes (>=0.4.0,<0.5.0) requires typing_extensions (>=3.10,<4.0).
  And because returns (0.19.0) depends on typing-extensions (>=4.0,<5.0)
   and no versions of returns match >0.19.0,<0.20.0, classes (>=0.4.0,<0.5.0) is incompatible with returns (>=0.19.0,<0.20.0).
  So, because ogc depends on both returns (^0.19.0) and classes (^0.4.0), version solving failed.

How is that should be

Should I be able to run both of these libraries together? If so, maybe just a typing-extensions version update is needed?

System information

  • python version: 3.9
  • classes version: 0.4.0
  • returns version: 0.19.0
  • mypy version: 0.941
Dominant language
Python
Stars
730
Forks
30
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dry-python/classes

All issues in dry-python/classes

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.