achevrot / impunity

A Python library to check physical units
https://achevrot.github.io/impunity/
MIT License
10 stars 0 forks source link

impunified functions fail if some (sometimes irrelevant) annotations are missing #3

Closed xoolive closed 1 year ago

xoolive commented 1 year ago
from impunity import impunity
from typing_extensions import Annotated

@impunity
def above_sea_level(a: Annotated[float, "m"]):
    return a > 0

Raises a KeyError: 'return'

xoolive commented 1 year ago

fixed in 247709e