vickumar1981 / pyeffects

Handle side-effects in Python like a boss. Implements functional types for Either, Option, Try, and Future.
Other
30 stars 6 forks source link

Add equality #34

Closed vickumar1981 closed 9 months ago

vickumar1981 commented 9 months ago
github-actions[bot] commented 9 months ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
pyeffects
   Either.py42295%101, 116
   Future.py94694%80, 224–225, 248–249, 260
   Monad.py43198%16
   Option.py39295%99, 111
   Try.py61297%106, 199
   __version__.py990%1–9
TOTAL2902292% 

Tests Skipped Failures Errors Time
77 0 :zzz: 0 :x: 0 :fire: 1.822s :stopwatch:
vickumar1981 commented 9 months ago

@BattiniSandeep I pulled in your changes as part of this PR.

Some notes:

The signature of __eq__ should allow comparisons against other types, i.e.:

def __eq__(self, other: object) -> bool:

so object was 100% correct here from your previous commit.

vickumar1981 commented 9 months ago

Line disabling 3.11 in CI/CD: https://github.com/vickumar1981/pyeffects/pull/34/files#diff-a0fe23534b616d51ce686d2a1bcd1a78bc75074aef1a2f6ee96c9469991e1a4cL20

typing-extensions in Pipfile: https://github.com/vickumar1981/pyeffects/pull/34/files#diff-230078d672f10d17463a8a6265cad825b790885898256a3365be90685caac58dL21