Closed andreabassi78 closed 1 year ago
Changed type hints to be compatible with python<3.10
Hi @fcaprile, I'm afraid the notation should be changes here too. https://github.com/fcaprile/PyFocus/blob/8d885383787d8225130cf05473de789fda697ca0/src/model/focus_field_calculators/base.py#L68
Sorry, I would change it myself but I'm not familiar with this notation yet.
Thanks @andreabassi78, modified the typing notation there as well.
The current syntax used in Pyfocus required python >=3.10. See for example: https://github.com/fcaprile/PyFocus/blob/8d885383787d8225130cf05473de789fda697ca0/src/model/focus_field_calculators/base.py#L21C6-L21C67
I suggest changing the syntax back to make sure the code works for previous versions. Otherwise, we have to set some requirements for the plugin, but we might lose some users.