bluthen/fish2pano

Python 3.7 and 3.8 compatibility

Closed this issue · 2 comments

Python 3.7 and 3.8 do not support built-in collections for type hints for lists and tuples with parameters.

On Python 3.7, the fish2pano 0.4.0 results in the following exception:

...
  File "/home/aaron/git/indi-allsky/indi_allsky/processing.py", line 2489, in fish2pano_module
    import fish2pano
  File "/home/aaron/git/indi-allsky/virtualenv/indi-allsky/lib/python3.7/site-packages/fish2pano/__init__.py", line 46, in <module>
    def fish2pano(img_raw: np.ndarray, radius: float, center: list[int, int], scale: float):
TypeError: 'type' object is not subscriptable

Submitted PR #1 to fix

Thanks! Sorry for not testing 3.7 better.