Closed vickumar1981 closed 9 months ago
@BattiniSandeep I pulled in your changes as part of this PR.
Some notes:
typing-extensions
, so I've currently disabled the 3.11 build in the github actions. Will create a separate issue for fixing the 3.11 build.__eq__
.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.
__eq__
operator up to the parent class instead of the respective subclasses, so there's only one implementation each for Option
, Try
, and Either
, instead of separate ones for say Some
and then None
.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