ekampf / pymaybe

A Python implementation of the Maybe pattern
BSD 3-Clause "New" or "Revised" License
208 stars 6 forks source link

Make `Maybe` a `Generic` type. #9

Closed chrisdotcode closed 4 years ago

chrisdotcode commented 5 years ago

Let me know if this needs any sort of testing or anything else.

One thing to note is that the typing module only exists in Python3.5+, so I'm not sure if there's version compatibility that needs to be maintained or not.

This may or may not also need a __version__ bump.

@ekampf let me know. Thanks!

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.2%) to 77.966% when pulling 97e69d86a7361bca3f12b5974ef68ad63427a304 on chrisdotcode:feature/generic into f755600f5478b6b595e2100417b39a7bc3de2c6f on ekampf:master.