DEV Community

Discussion on: Python exceptions considered an anti-pattern

Collapse
 
sobolevn profile image
Nikita Sobolev

Sorry, that's a typo! And thanks for noticing. I have updated this line:

Failure(4).map(lambda number: number / 2)
# => Failure(4)

PyCharm resolves types correctly, since we are shipping PEP561 annotations.