aboutcode-org / aboutcode-org/univers

Inconsistent use of `attr` parameter and `__eq__` in VersionConstraint

Aperta
#43 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
2-next bug good first issue
Lingua principale
Python
Stelle
50
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

For `__eq__` method to take effect, `eq=False` must be added as a attr parameter
https://github.com/nexB/univers/blob/7206c1fc35eb32d0006591e6defcc65ded40cfa0/src/univers/version_constraint.py#L123-L127
Something like this:
```python
@attr.s(frozen=True, repr=True, str=False, order=False, eq=False, hash=True)
```
Current attr paramaters:
https://github.com/nexB/univers/blob/7206c1fc35eb32d0006591e6defcc65ded40cfa0/src/univers/version_constraint.py#L55-L56

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.