dahlia/iso4217

1.10's `__init__.pyi` stub has invalid syntax

puddly opened this issue · 0 comments

The stub file includes both ellipsis (...) and a line of code:

def country_names(self) -> AbstractSet[str]: ...
return frozenset(raw_table[self.value]['CtryNm'])

Traceback when executing the file:

$ python /venv/lib/python3.10/site-packages/iso4217/__init__.pyi
  File "/venv/lib/python3.10/site-packages/iso4217/__init__.pyi", line 28
    return frozenset(raw_table[self.value]['CtryNm'])
IndentationError: unexpected indent

This breaks mypy type checking.